mirror of
https://github.com/zyedidia/micro.git
synced 2024-10-27 20:49:47 +03:00
Fix callback cancelation
This commit is contained in:
parent
59146cabb1
commit
46c5a81b0d
File diff suppressed because one or more lines are too long
@ -133,14 +133,14 @@ function onSave(bp)
|
||||
end
|
||||
|
||||
function lint(buf, linter, cmd, args, errorformat, loff, coff, callback)
|
||||
buf:ClearMessages(linter)
|
||||
|
||||
if callback ~= nil then
|
||||
if callback(buf) then
|
||||
if not callback(buf) then
|
||||
return
|
||||
end
|
||||
end
|
||||
|
||||
buf:ClearMessages(linter)
|
||||
|
||||
shell.JobSpawn(cmd, args, "", "", "linter.onExit", buf, linter, errorformat, loff, coff)
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user