diff src/search.c @ 16696:b1756c303066 v8.1.1350

patch 8.1.1350: "W" for wrapping not shown when more than 99 matches commit https://github.com/vim/vim/commit/dc6855af974f2ef553aceee619fadcb858e25d39 Author: Bram Moolenaar <Bram@vim.org> Date: Sat May 18 19:26:29 2019 +0200 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 https://github.com/vim/vim/issues/4388)
author Bram Moolenaar <Bram@vim.org>
date Sat, 18 May 2019 19:30:10 +0200
parents f37255166ff4
children b52ea9c5f1db
line wrap: on
line diff
--- a/src/search.c
+++ b/src/search.c
@@ -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;