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.
16b58ae9f3
This commit is contained in:
Jan Edmund Lazo
2020-09-29 19:45:32 -04:00
parent a307489a79
commit 83ebe0c998
3 changed files with 9 additions and 7 deletions

View File

@@ -4359,7 +4359,9 @@ static void search_stat(int dirc, pos_T *pos,
len = STRLEN(t);
if (show_top_bot_msg && len + 2 < SEARCH_STAT_BUF_LEN) {
STRCPY(t + len, " W");
memmove(t + 2, t, len);
t[0] = 'W';
t[1] = ' ';
len += 2;
}