aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_getln.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-08-21 21:31:25 +0800
committerGitHub <noreply@github.com>2022-08-21 21:31:25 +0800
commite3eb6967bcce6a7f82639aa9d2e925080804026d (patch)
tree587cf43476ffb1d40f79e46101d8ce12552730f6 /src/nvim/ex_getln.c
parentdde90f0ca4e394667afe39c18f4a4dabdd8a6666 (diff)
downloadrneovim-e3eb6967bcce6a7f82639aa9d2e925080804026d.tar.gz
rneovim-e3eb6967bcce6a7f82639aa9d2e925080804026d.tar.bz2
rneovim-e3eb6967bcce6a7f82639aa9d2e925080804026d.zip
vim-patch:8.2.4325: 'wildmenu' only shows few matches (#19876)
Problem: 'wildmenu' only shows few matches. Solution: Add the "pum" option: use a popup menu to show the matches. (Yegappan Lakshmanan et al., closes vim/vim#9707) https://github.com/vim/vim/commit/3908ef5017a6b4425727013588f72cc7343199b9 Omit p_wmnu check in cmdline_pum_active() as it can cause problems. Omit vim_strchr() flags as that isn't really better than bitmasks. Omit key translations and document it in vim_diff.txt.
Diffstat (limited to 'src/nvim/ex_getln.c')
-rw-r--r--src/nvim/ex_getln.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c
index 5a5491c79e..a0bcccb5be 100644
--- a/src/nvim/ex_getln.c
+++ b/src/nvim/ex_getln.c
@@ -1801,6 +1801,10 @@ static int command_line_handle_key(CommandLineState *s)
if (nextwild(&s->xpc, WILD_ALL, 0, s->firstc != '@') == FAIL) {
break;
}
+ if (cmdline_pum_active()) {
+ cmdline_pum_cleanup(&ccline);
+ s->xpc.xp_context = EXPAND_NOTHING;
+ }
return command_line_changed(s);
case Ctrl_L: