refactor(vim.system): factor out on_exit handling

This commit is contained in:
Lewis Russell
2023-09-04 12:03:03 +01:00
parent 6d5f12efd2
commit 80d1333b73
6 changed files with 87 additions and 73 deletions

View File

@@ -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