Fix garbage collect bug, ReplaceWithoutMovingCarets takes buffer now, Reopen buffer happens automatically when not dirty
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user