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.
This commit is contained in:
Luuk van Baal
2022-12-31 00:35:11 +01:00
parent b102bf22c0
commit 935e538b63
2 changed files with 2 additions and 2 deletions

View File

@@ -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;

View File

@@ -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();