fix(ui): don't force 'cmdheight' to zero with ext_messages

Remove remaining code that prevents non-zero 'cmdheight' with ext_messages.
This commit is contained in:
Luuk van Baal
2024-03-15 12:54:39 +01:00
parent f190f758ac
commit b5a38530ba
4 changed files with 19 additions and 22 deletions

View File

@@ -227,6 +227,11 @@ void ui_refresh(void)
if (i < kUIGlobalCount) {
ext_widgets[i] |= ui_cb_ext[i];
}
// Set 'cmdheight' to zero when ext_messages becomes active.
if (i == kUIMessages && !ui_ext[i] && ext_widgets[i]) {
set_option_value(kOptCmdheight, NUMBER_OPTVAL(0), 0);
command_height();
}
ui_ext[i] = ext_widgets[i];
if (i < kUIGlobalCount) {
ui_call_option_set(cstr_as_string(ui_ext_names[i]),
@@ -241,10 +246,6 @@ void ui_refresh(void)
screen_resize(width, height);
p_lz = save_p_lz;
if (ext_widgets[kUIMessages]) {
set_option_value(kOptCmdheight, NUMBER_OPTVAL(0), 0);
command_height();
}
ui_mode_info_set();
pending_mode_update = true;
ui_cursor_shape();