aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/message.c
diff options
context:
space:
mode:
authorShougo Matsushita <Shougo.Matsu@gmail.com>2022-07-31 17:06:32 +0900
committerzeertzjq <zeertzjq@outlook.com>2022-07-31 17:15:36 +0800
commit81a1d26c3eee816abaa3d0e611a8b1a0e473d3a1 (patch)
treeb4b14f57c36376c382bf9116f85aa84633749024 /src/nvim/message.c
parentabc087f4c65ca547cae58518b42aee82ff4a07f6 (diff)
downloadrneovim-81a1d26c3eee816abaa3d0e611a8b1a0e473d3a1.tar.gz
rneovim-81a1d26c3eee816abaa3d0e611a8b1a0e473d3a1.tar.bz2
rneovim-81a1d26c3eee816abaa3d0e611a8b1a0e473d3a1.zip
vim-patch:9.0.0114: the command line takes up space even when not used
Problem: The command line takes up space even when not used. Solution: Allow for 'cmdheight' to be set to zero. (Shougo Matsushita, closes vim/vim#10675, closes vim/vim#940) https://github.com/vim/vim/commit/f39cfb72629f3e7fefaf578a3faa2619cd0654f8 Omit win_redr_ruler() change: winbar may still need redraw. Omit win_update() changes: Nvim doesn't use `Rows` there. Omit redraw_asap(): removed.
Diffstat (limited to 'src/nvim/message.c')
-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 66c6cca561..621a9212df 100644
--- a/src/nvim/message.c
+++ b/src/nvim/message.c
@@ -1390,7 +1390,7 @@ void msg_start(void)
need_fileinfo = false;
}
- bool no_msg_area = !ui_has_messages();
+ const bool no_msg_area = !ui_has_messages();
if (need_clr_eos || (no_msg_area && redrawing_cmdline)) {
// Halfway an ":echo" command and getting an (error) message: clear