mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 05:58:33 +00:00
fix(cmdline): completion for command after :restart (#35256)
This commit is contained in:
@@ -2014,6 +2014,7 @@ static const char *set_context_by_cmdname(const char *cmd, cmdidx_T cmdidx, expa
|
|||||||
case CMD_lockmarks:
|
case CMD_lockmarks:
|
||||||
case CMD_noautocmd:
|
case CMD_noautocmd:
|
||||||
case CMD_noswapfile:
|
case CMD_noswapfile:
|
||||||
|
case CMD_restart:
|
||||||
case CMD_rightbelow:
|
case CMD_rightbelow:
|
||||||
case CMD_sandbox:
|
case CMD_sandbox:
|
||||||
case CMD_silent:
|
case CMD_silent:
|
||||||
|
@@ -952,6 +952,12 @@ describe('completion', function()
|
|||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
it('cmdline completion for :restart', function()
|
||||||
|
eq('qall', fn.getcompletion('restart +qa', 'cmdline')[1])
|
||||||
|
eq('edit', fn.getcompletion('restart +qall ed', 'cmdline')[1])
|
||||||
|
eq('edit', fn.getcompletion('restart ed', 'cmdline')[1])
|
||||||
|
end)
|
||||||
|
|
||||||
describe('from the commandline window', function()
|
describe('from the commandline window', function()
|
||||||
it('is cleared after CTRL-C', function()
|
it('is cleared after CTRL-C', function()
|
||||||
feed('q:')
|
feed('q:')
|
||||||
|
Reference in New Issue
Block a user