1
0
forked from aniani/vim

patch 8.1.1992: the search stat moves when wrapping at the end of the buffer

Problem:    The search stat moves when wrapping at the end of the buffer.
Solution:   Put the "W" in front instead of at the end.
This commit is contained in:
Bram Moolenaar
2019-09-06 20:40:21 +02:00
parent 6f72e90dd8
commit 16b58ae9f3
3 changed files with 10 additions and 6 deletions

View File

@@ -5011,7 +5011,9 @@ search_stat(
len = STRLEN(t);
if (show_top_bot_msg && len + 2 < SEARCH_STAT_BUF_LEN)
{
STRCPY(t + len, " W");
mch_memmove(t + 2, t, len);
t[0] = 'W';
t[1] = ' ';
len += 2;
}