Skip to content

Commit 42f62b1

Browse files
committed
Only shutdown servers when actually quitting.
Previously, even if the user cancels the quit, servers would still shutdown. Requires latest Textadept.
1 parent 11966fa commit 42f62b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1470,7 +1470,7 @@ local function shutdown_servers()
14701470
end
14711471
end
14721472
events.connect(events.RESET_BEFORE, shutdown_servers) -- will be restarted as buffers are reloaded
1473-
events.connect(events.QUIT, shutdown_servers, 1)
1473+
events.connect(events.QUIT, shutdown_servers)
14741474

14751475
-- Log buffer modification times for more real-time diagnostics.
14761476
local INSERT, DELETE = buffer.MOD_INSERTTEXT, buffer.MOD_DELETETEXT

0 commit comments

Comments
 (0)