Fix garbage collect bug, ReplaceWithoutMovingCarets takes buffer now, Reopen buffer happens automatically when not dirty

This commit is contained in:
Krzosa Karol
2025-05-08 22:42:04 +02:00
parent abb2cfb1c4
commit 46c109dce4
13 changed files with 133 additions and 90 deletions

View File

@@ -210,7 +210,7 @@ Rules = {
MatchURL,
}
function ApplyRules(s)
function OnOpen(s)
for i = #Rules,1,-1 do
rule = Rules[i]
result = rule(s)
@@ -221,10 +221,6 @@ function ApplyRules(s)
return nil
end
function CFiles()
Cmd({working_dir = GetProjectDir(), kind ="a", cmd = "dir /s/b | findstr .*\\.c"})
end
Coroutines = {}
function AddCo(f)
local i = #Coroutines + 1