Mercurial > vim
diff src/message.c @ 27255:8c43e3d1a6e5 v8.2.4156
patch 8.2.4156: fileinfo message overwrites echo'ed message
Commit: https://github.com/vim/vim/commit/726f7f91fd17e3e7eb39614a20d10ea83c134df0
Author: Rob Pilling <robpilling@gmail.com>
Date: Thu Jan 20 14:44:38 2022 +0000
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 20 Jan 2022 15:45:03 +0100 |
parents | eebbcc83fb75 |
children | 41e0dcf38521 |
line wrap: on
line diff
--- a/src/message.c +++ b/src/message.c @@ -181,6 +181,8 @@ msg_attr_keep( < (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 @@ msg_start(void) 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_attr_len(char *str, int maxlen, msg_puts_printf((char_u *)str, maxlen); else msg_puts_display((char_u *)str, maxlen, attr, FALSE); + + need_fileinfo = FALSE; } /*