mirror of
https://github.com/Ascyii/typstar.git
synced 2026-01-01 13:34:24 -05:00
minor: fix wrong argument order
This commit is contained in:
@@ -38,12 +38,15 @@ function M.run_shell_command(cmd, show_output, extra_handler, opts)
|
||||
end
|
||||
end
|
||||
if show_output then
|
||||
return vim.fn.jobstart(cmd, vim.tbl_deep_extend({
|
||||
on_stdout = function(_, data, _) handle_output(data, false) end,
|
||||
on_stderr = function(_, data, _) handle_output(data, true) end,
|
||||
stdout_buffered = false,
|
||||
stderr_buffered = true,
|
||||
}, opts, "force"))
|
||||
return vim.fn.jobstart(
|
||||
cmd,
|
||||
vim.tbl_deep_extend('force', {
|
||||
on_stdout = function(_, data, _) handle_output(data, false) end,
|
||||
on_stderr = function(_, data, _) handle_output(data, true) end,
|
||||
stdout_buffered = false,
|
||||
stderr_buffered = true,
|
||||
}, opts)
|
||||
)
|
||||
else
|
||||
return vim.fn.jobstart(cmd, opts)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user