aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval/funcs.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/eval/funcs.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/eval/funcs.c')
-rw-r--r--src/nvim/eval/funcs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval/funcs.c b/src/nvim/eval/funcs.c
index e15244b515..9c3c859771 100644
--- a/src/nvim/eval/funcs.c
+++ b/src/nvim/eval/funcs.c
@@ -9633,7 +9633,7 @@ static void f_visualmode(typval_T *argvars, typval_T *rettv, FunPtr fptr)
/// "wildmenumode()" function
static void f_wildmenumode(typval_T *argvars, typval_T *rettv, FunPtr fptr)
{
- if (wild_menu_showing || ((State & MODE_CMDLINE) && pum_visible())) {
+ if (wild_menu_showing || ((State & MODE_CMDLINE) && cmdline_pum_active())) {
rettv->vval.v_number = 1;
}
}