mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 19:38:20 +00:00
refactor(vim.system): factor out on_exit handling
This commit is contained in:
@@ -648,7 +648,7 @@ function M.start(cmd, cmd_args, dispatchers, extra_spawn_params)
|
||||
|
||||
dispatchers = merge_dispatchers(dispatchers)
|
||||
|
||||
local sysobj ---@type SystemObj
|
||||
local sysobj ---@type vim.SystemObj
|
||||
|
||||
local client = new_client(dispatchers, {
|
||||
write = function(msg)
|
||||
@@ -708,7 +708,7 @@ function M.start(cmd, cmd_args, dispatchers, extra_spawn_params)
|
||||
return
|
||||
end
|
||||
|
||||
sysobj = sysobj_or_err --[[@as SystemObj]]
|
||||
sysobj = sysobj_or_err --[[@as vim.SystemObj]]
|
||||
|
||||
return public_client(client)
|
||||
end
|
||||
|
Reference in New Issue
Block a user