mirror of
https://github.com/neovim/neovim.git
synced 2026-08-30 02:51:48 +00:00
refactor: replace deprecated vim.loop with vim.uv
(cherry picked from commit 1a2e6ebc59)
This commit is contained in:
committed by
github-actions[bot]
parent
ab2d243fd0
commit
c35e040b7e
@@ -306,7 +306,7 @@ function M.system(cmd, args)
|
||||
|
||||
if jobid < 1 then
|
||||
local message =
|
||||
string.format('Command error (job=%d): %s (in %s)', jobid, shellify(cmd), vim.loop.cwd())
|
||||
string.format('Command error (job=%d): %s (in %s)', jobid, shellify(cmd), vim.uv.cwd())
|
||||
error(message)
|
||||
return opts.output, 1
|
||||
end
|
||||
@@ -325,7 +325,7 @@ function M.system(cmd, args)
|
||||
jobid,
|
||||
shell_error_code,
|
||||
shellify(cmd),
|
||||
vim.loop.cwd()
|
||||
vim.uv.cwd()
|
||||
)
|
||||
if opts.output:find('%S') then
|
||||
emsg = string.format('%s\noutput: %s', emsg, opts.output)
|
||||
|
||||
Reference in New Issue
Block a user