aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-06-16 09:20:41 +0800
committerGitHub <noreply@github.com>2023-06-16 09:20:41 +0800
commit8376e8700b3d4f8ab96751612c3f4439a43b06f4 (patch)
treefc1d9c844283da12dfe91b716f97976b66bcfabd /src
parentddba917efee26229d77f86d14a9f62dcfdc822b8 (diff)
parent11060793d6544e893f31d65e8f964453c463407c (diff)
downloadrneovim-8376e8700b3d4f8ab96751612c3f4439a43b06f4.tar.gz
rneovim-8376e8700b3d4f8ab96751612c3f4439a43b06f4.tar.bz2
rneovim-8376e8700b3d4f8ab96751612c3f4439a43b06f4.zip
Merge pull request #24037 from zeertzjq/vim-9.0.1634
vim-patch:9.0.{1634,1635}: message is cleared when removing mode message
Diffstat (limited to 'src')
-rw-r--r--src/nvim/message.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/message.c b/src/nvim/message.c
index 1cb4a3cbf4..0064f0358b 100644
--- a/src/nvim/message.c
+++ b/src/nvim/message.c
@@ -1560,6 +1560,13 @@ int msg_outtrans_len_attr(const char *msgstr, int len, int attr)
attr &= ~MSG_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) {
+ clear_cmdline = false;
+ mode_displayed = false;
+ }
+
// If the string starts with a composing character first draw a space on
// which the composing char can be drawn.
if (utf_iscomposing(utf_ptr2char(msgstr))) {