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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user