mirror of
https://github.com/neovim/neovim.git
synced 2025-12-09 16:12:48 +00:00
fix(api): vim.cmd.make crashes when argument count isn't 1 (#19701)
Closes #19696
This commit is contained in:
@@ -3829,5 +3829,12 @@ describe('API', function()
|
||||
eq({'aa'}, meths.buf_get_lines(0, 0, 1, false))
|
||||
assert_alive()
|
||||
end)
|
||||
it("'make' command works when argument count isn't 1 #19696", function()
|
||||
command('set makeprg=echo')
|
||||
meths.cmd({ cmd = 'make' }, {})
|
||||
assert_alive()
|
||||
meths.cmd({ cmd = 'make', args = { 'foo', 'bar' } }, {})
|
||||
assert_alive()
|
||||
end)
|
||||
end)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user