diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-11-24 06:13:24 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-24 06:13:24 +0800 |
commit | 951034614110cf2e4388645ee17ed4a315d0d382 (patch) | |
tree | b548a061db1dd94cc47e11363c0f6e290593ccab /src/nvim/message.c | |
parent | 4ed1c2a8afc71f1e3e2bc6835dc95f284782fe52 (diff) | |
download | rneovim-951034614110cf2e4388645ee17ed4a315d0d382.tar.gz rneovim-951034614110cf2e4388645ee17ed4a315d0d382.tar.bz2 rneovim-951034614110cf2e4388645ee17ed4a315d0d382.zip |
vim-patch:9.0.2125: File info disappears when 'cmdheight' has decreased (#26180)
Problem: File info disappears immediately when 'cmdheight' has just
decreased due to switching tabpage and 'shortmess' doesn't
contain 'o' or 'O'.
Solution: Make sure msg_row isn't smaller than cmdline_row.
fixes: vim/vim#13560
closes: vim/vim#13561
https://github.com/vim/vim/commit/40ed6711bd385051021691980e8ce16375b4b510
Diffstat (limited to 'src/nvim/message.c')
-rw-r--r-- | src/nvim/message.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nvim/message.c b/src/nvim/message.c index d9f9c26243..2ff0172ac4 100644 --- a/src/nvim/message.c +++ b/src/nvim/message.c @@ -1395,7 +1395,11 @@ void msg_ext_set_kind(const char *msg_kind) /// Prepare for outputting characters in the command line. void msg_start(void) { - int did_return = false; + bool did_return = false; + + if (msg_row < cmdline_row) { + msg_row = cmdline_row; + } if (!msg_silent) { XFREE_CLEAR(keep_msg); // don't display old message now |