mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
test: fix command_count_spec
The test hit wait_return if x or .x.swp exists in the project root directory.
This commit is contained in:
@@ -221,11 +221,10 @@ local function spawn(argv, merge)
|
||||
return Session.new(child_stream)
|
||||
end
|
||||
|
||||
local function clear(extra_cmd)
|
||||
local function clear(...)
|
||||
local args = {unpack(nvim_argv)}
|
||||
if extra_cmd ~= nil then
|
||||
table.insert(args, '--cmd')
|
||||
table.insert(args, extra_cmd)
|
||||
for _, arg in ipairs({...}) do
|
||||
table.insert(args, arg)
|
||||
end
|
||||
set_session(spawn(args))
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user