comparison 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
comparison
equal deleted inserted replaced
16695:bb8d2ba5f265 16696:b1756c303066
5010 else 5010 else
5011 vim_snprintf(t, SEARCH_STAT_BUF_LEN, "[%d/%d]", cur, cnt); 5011 vim_snprintf(t, SEARCH_STAT_BUF_LEN, "[%d/%d]", cur, cnt);
5012 } 5012 }
5013 5013
5014 len = STRLEN(t); 5014 len = STRLEN(t);
5015 if (show_top_bot_msg && len + 3 < SEARCH_STAT_BUF_LEN) 5015 if (show_top_bot_msg && len + 2 < SEARCH_STAT_BUF_LEN)
5016 { 5016 {
5017 STRCPY(t + len, " W"); 5017 STRCPY(t + len, " W");
5018 len += 2; 5018 len += 2;
5019 } 5019 }
5020 5020