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)
diff --git a/src/ex_getln.c b/src/ex_getln.c
index a3cac72..c706476 100644
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -4147,7 +4147,7 @@
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
{