patch 8.2.4156: fileinfo message overwrites echo'ed message
Problem: Fileinfo message overwrites echo'ed message.
Solution: Reset need_fileinfo when displaying a message. (Rob Pilling,
closes #9569)
diff --git a/src/message.c b/src/message.c
index 04a51fb..31314d2 100644
--- a/src/message.c
+++ b/src/message.c
@@ -181,6 +181,8 @@
< (int)(Rows - cmdline_row - 1) * Columns + sc_col)
set_keep_msg((char_u *)s, 0);
+ need_fileinfo = FALSE;
+
vim_free(buf);
--entered;
return retval;
@@ -1420,7 +1422,10 @@
int did_return = FALSE;
if (!msg_silent)
+ {
VIM_CLEAR(keep_msg);
+ need_fileinfo = FALSE;
+ }
#ifdef FEAT_EVAL
if (need_clr_eos)
@@ -2163,6 +2168,8 @@
msg_puts_printf((char_u *)str, maxlen);
else
msg_puts_display((char_u *)str, maxlen, attr, FALSE);
+
+ need_fileinfo = FALSE;
}
/*