mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 14:38:32 +00:00
vim-patch:9.0.1290: CTRL-N and -P on cmdline don't trigger CmdlineChanged (#22151)
Problem: CTRL-N and -P on cmdline don't trigger CmdlineChanged.
Solution: Jump to cmdline_changed instead of cmdline_not_changed.
(closes vim/vim#11956)
af9e28a5b8
Cherry-pick Test_Cmdline() change from patch 9.0.1039.
This commit is contained in:
@@ -2015,7 +2015,7 @@ static int command_line_handle_key(CommandLineState *s)
|
||||
if (nextwild(&s->xpc, wild_type, 0, s->firstc != '@') == FAIL) {
|
||||
break;
|
||||
}
|
||||
return command_line_not_changed(s);
|
||||
return command_line_changed(s);
|
||||
}
|
||||
FALLTHROUGH;
|
||||
|
||||
@@ -2037,7 +2037,7 @@ static int command_line_handle_key(CommandLineState *s)
|
||||
if (nextwild(&s->xpc, wild_type, 0, s->firstc != '@') == FAIL) {
|
||||
break;
|
||||
}
|
||||
return command_line_not_changed(s);
|
||||
return command_line_changed(s);
|
||||
} else {
|
||||
switch (command_line_browse_history(s)) {
|
||||
case CMDLINE_CHANGED:
|
||||
|
Reference in New Issue
Block a user