0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 8.0.0528: highlight wrong text when 'wim' includes "longest"

Problem:    When 'wildmenu' is set and 'wildmode' has "longest" then the first
            file name is highlighted, even though the text shows the longest
            match.
Solution:   Do not highlight the first match. (LemonBoy, closes #1602)
This commit is contained in:
Bram Moolenaar 2017-03-30 22:04:55 +02:00
parent ce5c274201
commit ef8eb08978
2 changed files with 3 additions and 1 deletions

View File

@ -4147,7 +4147,7 @@ showmatches(expand_T *xp, int wildmenu UNUSED)
got_int = FALSE; /* only int. the completion, not the cmd line */ got_int = FALSE; /* only int. the completion, not the cmd line */
#ifdef FEAT_WILDMENU #ifdef FEAT_WILDMENU
else if (wildmenu) else if (wildmenu)
win_redr_status_matches(xp, num_files, files_found, 0, showtail); win_redr_status_matches(xp, num_files, files_found, -1, showtail);
#endif #endif
else else
{ {

View File

@ -764,6 +764,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
528,
/**/ /**/
527, 527,
/**/ /**/