commit | dc6855af974f2ef553aceee619fadcb858e25d39 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sat May 18 19:26:29 2019 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Sat May 18 19:26:29 2019 +0200 |
tree | 3e84fe2841d762bd7900383e074aae2841f1c296 | |
parent | cf0bfd9ade5173bcc12563bfc90c21a4db10535d [diff] [blame] |
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)
diff --git a/src/search.c b/src/search.c index d9b6a7c..56bd763 100644 --- a/src/search.c +++ b/src/search.c
@@ -5012,7 +5012,7 @@ } 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;