diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-02-07 07:54:33 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-07 07:54:33 +0800 |
commit | 1391385ba9f83d32f3b6fc54587f03a1d34960d9 (patch) | |
tree | 0a6924688058c9338ee13eedc9a9c055fdb97a0a /src/nvim/ex_getln.c | |
parent | 3170e05d5743c5b46b14058f3c0702b4d7a43320 (diff) | |
download | rneovim-1391385ba9f83d32f3b6fc54587f03a1d34960d9.tar.gz rneovim-1391385ba9f83d32f3b6fc54587f03a1d34960d9.tar.bz2 rneovim-1391385ba9f83d32f3b6fc54587f03a1d34960d9.zip |
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)
https://github.com/vim/vim/commit/af9e28a5b8f888b79459393ddb26fffe613c3f3c
Cherry-pick Test_Cmdline() change from patch 9.0.1039.
Diffstat (limited to 'src/nvim/ex_getln.c')
-rw-r--r-- | src/nvim/ex_getln.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c index 76c3680742..eadeb839de 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -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: |