]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.0.0528: highlight wrong text when 'wim' includes "longest" v8.0.0528
authorBram Moolenaar <Bram@vim.org>
Thu, 30 Mar 2017 20:04:55 +0000 (22:04 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 30 Mar 2017 20:04:55 +0000 (22:04 +0200)
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)

src/ex_getln.c
src/version.c

index a3cac7262357415ba2ecd6ae76270f9325a3c667..c706476b887282fb52ffa418effb59b50affd592 100644 (file)
@@ -4147,7 +4147,7 @@ showmatches(expand_T *xp, int wildmenu UNUSED)
        got_int = FALSE;        /* only int. the completion, not the cmd line */
 #ifdef FEAT_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
     else
     {
index 71b04106e6c177ca38519a95b7f8fa4d4de88b60..fe972df1a8cc7d9369b4c588c85a94a71d425296 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    528,
 /**/
     527,
 /**/