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.
diff --git a/src/search.c b/src/search.c
index ee66052..be6daac 100644
--- a/src/search.c
+++ b/src/search.c
@@ -5011,7 +5011,9 @@
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;
}