diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-06-16 08:13:42 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-06-16 08:55:05 +0800 |
commit | 11060793d6544e893f31d65e8f964453c463407c (patch) | |
tree | fc1d9c844283da12dfe91b716f97976b66bcfabd /src | |
parent | cba07dad494558a4a06e25a35521041864697be3 (diff) | |
download | rneovim-11060793d6544e893f31d65e8f964453c463407c.tar.gz rneovim-11060793d6544e893f31d65e8f964453c463407c.tar.bz2 rneovim-11060793d6544e893f31d65e8f964453c463407c.zip |
vim-patch:9.0.1635: error message is cleared when removing mode message
Problem: Error message is cleared when removing mode message.
Solution: Also reset flags when the message is further down.
https://github.com/vim/vim/commit/da51ad51bf4fbd66619786d0e6a83fb3ca09930b
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/message.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/message.c b/src/nvim/message.c index d0b128c568..0064f0358b 100644 --- a/src/nvim/message.c +++ b/src/nvim/message.c @@ -1562,7 +1562,7 @@ int msg_outtrans_len_attr(const char *msgstr, int len, int attr) // When drawing over the command line no need to clear it later or remove // the mode message. - if (msg_row == cmdline_row && msg_col == 0) { + if (msg_row >= cmdline_row && msg_col == 0) { clear_cmdline = false; mode_displayed = false; } |