mirror of
https://github.com/neovim/neovim.git
synced 2025-09-14 07:18:17 +00:00
refactor(ui_refresh): only save/restore p_lz if calling screen_resize() (#17794)
This commit is contained in:
@@ -223,10 +223,11 @@ void ui_refresh(void)
|
|||||||
|
|
||||||
ui_default_colors_set();
|
ui_default_colors_set();
|
||||||
|
|
||||||
|
if (!ui_client_channel_id) {
|
||||||
int save_p_lz = p_lz;
|
int save_p_lz = p_lz;
|
||||||
p_lz = false; // convince redrawing() to return true ...
|
p_lz = false; // convince redrawing() to return true ...
|
||||||
if (!ui_client_channel_id) {
|
|
||||||
screen_resize(width, height);
|
screen_resize(width, height);
|
||||||
|
p_lz = save_p_lz;
|
||||||
} else {
|
} else {
|
||||||
Array args = ARRAY_DICT_INIT;
|
Array args = ARRAY_DICT_INIT;
|
||||||
Error err = ERROR_INIT;
|
Error err = ERROR_INIT;
|
||||||
@@ -240,8 +241,6 @@ void ui_refresh(void)
|
|||||||
api_clear_error(&err);
|
api_clear_error(&err);
|
||||||
}
|
}
|
||||||
|
|
||||||
p_lz = save_p_lz;
|
|
||||||
|
|
||||||
if (ext_widgets[kUIMessages]) {
|
if (ext_widgets[kUIMessages]) {
|
||||||
p_ch = 0;
|
p_ch = 0;
|
||||||
command_height();
|
command_height();
|
||||||
|
Reference in New Issue
Block a user