mirror of
https://github.com/Ascyii/typstar.git
synced 2026-01-01 05:24: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
|
||||||
end
|
end
|
||||||
if show_output then
|
if show_output then
|
||||||
return vim.fn.jobstart(cmd, vim.tbl_deep_extend({
|
return vim.fn.jobstart(
|
||||||
on_stdout = function(_, data, _) handle_output(data, false) end,
|
cmd,
|
||||||
on_stderr = function(_, data, _) handle_output(data, true) end,
|
vim.tbl_deep_extend('force', {
|
||||||
stdout_buffered = false,
|
on_stdout = function(_, data, _) handle_output(data, false) end,
|
||||||
stderr_buffered = true,
|
on_stderr = function(_, data, _) handle_output(data, true) end,
|
||||||
}, opts, "force"))
|
stdout_buffered = false,
|
||||||
|
stderr_buffered = true,
|
||||||
|
}, opts)
|
||||||
|
)
|
||||||
else
|
else
|
||||||
return vim.fn.jobstart(cmd, opts)
|
return vim.fn.jobstart(cmd, opts)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user