diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-03-23 06:34:45 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-23 06:34:45 +0800 |
commit | 159111f9a59d9e366fe975bf78c223228ce9ca8a (patch) | |
tree | 1d235012933fddbbb0d527423d5e8858cfccc426 | |
parent | 7863e6b709976d53d69b8495f1ab4417d965f4b3 (diff) | |
download | rneovim-159111f9a59d9e366fe975bf78c223228ce9ca8a.tar.gz rneovim-159111f9a59d9e366fe975bf78c223228ce9ca8a.tar.bz2 rneovim-159111f9a59d9e366fe975bf78c223228ce9ca8a.zip |
refactor(ui_refresh): only save/restore p_lz if calling screen_resize() (#17794)
-rw-r--r-- | src/nvim/ui.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/nvim/ui.c b/src/nvim/ui.c index da50f068b7..4fe3e1157c 100644 --- a/src/nvim/ui.c +++ b/src/nvim/ui.c @@ -223,10 +223,11 @@ void ui_refresh(void) ui_default_colors_set(); - int save_p_lz = p_lz; - p_lz = false; // convince redrawing() to return true ... if (!ui_client_channel_id) { + int save_p_lz = p_lz; + p_lz = false; // convince redrawing() to return true ... screen_resize(width, height); + p_lz = save_p_lz; } else { Array args = ARRAY_DICT_INIT; Error err = ERROR_INIT; @@ -240,8 +241,6 @@ void ui_refresh(void) api_clear_error(&err); } - p_lz = save_p_lz; - if (ext_widgets[kUIMessages]) { p_ch = 0; command_height(); |