aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2025-02-28 07:03:52 +0800
committerGitHub <noreply@github.com>2025-02-27 23:03:52 +0000
commitdf0328521f17766df9e1a8970bf5adee39b78192 (patch)
tree17d965a9c7e9ff5ab03fd3e438a0d32da105d320 /src
parent89d6d6f25cf22175e8c8eedef7181d8d618f9898 (diff)
downloadrneovim-df0328521f17766df9e1a8970bf5adee39b78192.tar.gz
rneovim-df0328521f17766df9e1a8970bf5adee39b78192.tar.bz2
rneovim-df0328521f17766df9e1a8970bf5adee39b78192.zip
vim-patch:9.1.1155: Mode message not cleared after :silent message (#32667)
Problem: Mode message not cleared after :silent message (after 9.0.1634). Solution: Don't reset mode_displayed when the message is empty. (zeertzjq) fixes: neovim/neovim#32641 closes: vim/vim#16744 https://github.com/vim/vim/commit/fce1fa5b618458f6f10028faadc9a9ddc227fe76
Diffstat (limited to 'src')
-rw-r--r--src/nvim/message.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/message.c b/src/nvim/message.c
index ef4cde8a80..c077e70060 100644
--- a/src/nvim/message.c
+++ b/src/nvim/message.c
@@ -1679,7 +1679,7 @@ int msg_outtrans_len(const char *msgstr, int len, int hl_id, bool hist)
// 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_silent == 0 && len > 0 && msg_row >= cmdline_row && msg_col == 0) {
clear_cmdline = false;
mode_displayed = false;
}