1
0
forked from aniani/vim

patch 8.1.1350: "W" for wrapping not shown when more than 99 matches

Problem:    "W" for wrapping not shown when more than 99 matches.
Solution:   Adjust check for length. (Masato Nishihata, closes #4388)
This commit is contained in:
Bram Moolenaar
2019-05-18 19:26:29 +02:00
parent cf0bfd9ade
commit dc6855af97
3 changed files with 11 additions and 1 deletions

View File

@@ -5012,7 +5012,7 @@ search_stat(
}
len = STRLEN(t);
if (show_top_bot_msg && len + 3 < SEARCH_STAT_BUF_LEN)
if (show_top_bot_msg && len + 2 < SEARCH_STAT_BUF_LEN)
{
STRCPY(t + len, " W");
len += 2;