Skip to content

Commit 7fcfd73

Browse files
Be able to call sclang.stop from user cmd (#255)
1 parent 2bd34cb commit 7fcfd73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/scnvim/sclang.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ function M.start()
223223
end
224224

225225
--- Stop the sclang process.
226-
function M.stop(callback)
226+
function M.stop(_, callback)
227227
if not M.is_running() then
228228
return
229229
end
@@ -251,7 +251,7 @@ function M.stop(callback)
251251
end
252252

253253
function M.reboot()
254-
M.stop(M.start)
254+
M.stop(nil, M.start)
255255
end
256256

257257
--- Recompile the class library.

0 commit comments

Comments
 (0)