0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 9.0.0238: Shift-Tab shows matches on cmdline when 'wildmenu' is off

Problem:    Shift-Tab shows matches on cmdline when 'wildmenu' is off.
Solution:   Only show matches when 'wildmode' contains "list". (closes #10951)
This commit is contained in:
Bram Moolenaar
2022-08-21 18:38:21 +01:00
parent e24a14118c
commit 300175fd7f
3 changed files with 26 additions and 1 deletions

View File

@@ -2033,7 +2033,12 @@ getcmdline_int(
{
if (nextwild(&xpc, WILD_EXPAND_KEEP, 0, firstc != '@') == OK)
{
if (xpc.xp_numfiles > 1)
if (xpc.xp_numfiles > 1
&& ((!did_wild_list && (wim_flags[wim_index] & WIM_LIST))
#ifdef FEAT_WILDMENU
|| p_wmnu)
#endif
)
{
#ifdef FEAT_WILDMENU
// Trigger the popup menu when wildoptions=pum