commit 935e538b632ba3cb041fb846d2254d92ef981e71
parent b102bf22c009d3543f71d9d21c1252b54f5d4a54
Author: Luuk van Baal <luukvbaal@gmail.com>
Date: Sat, 31 Dec 2022 00:35:11 +0100
fix: issues with command line if ui elements are externalized
Resolve https://github.com/neovim/neovim/issues/20888 and handle side
effects for setting 'cmdheight' to zero.
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c
@@ -3841,7 +3841,7 @@ void compute_cmdrow(void)
cmdline_row = wp->w_winrow + wp->w_height
+ wp->w_hsep_height + wp->w_status_height + global_stl_height();
}
- if (cmdline_row == Rows) {
+ if (cmdline_row == Rows && p_ch > 0) {
cmdline_row--;
}
lines_left = cmdline_row;
diff --git a/src/nvim/ui.c b/src/nvim/ui.c
@@ -235,7 +235,7 @@ void ui_refresh(void)
}
if (ext_widgets[kUIMessages]) {
- p_ch = 0;
+ set_option_value("cmdheight", 0L, NULL, 0);
command_height();
}
ui_mode_info_set();