diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-08-21 18:38:21 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-08-21 18:38:21 +0100 |
commit | 300175fd7f874be78826a00f5cb60a7ec2f20655 (patch) | |
tree | 8ebcb4ac031d63c6144810748f397f2177bd924c /src/ex_getln.c | |
parent | e24a14118c29d910d3be59203332768b5fbd93e8 (diff) |
patch 9.0.0238: Shift-Tab shows matches on cmdline when 'wildmenu' is offv9.0.0238
Problem: Shift-Tab shows matches on cmdline when 'wildmenu' is off.
Solution: Only show matches when 'wildmode' contains "list". (closes #10951)
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r-- | src/ex_getln.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c index 04273379b3..6b62d84cf1 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -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 |