diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-02-13 06:30:35 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-13 06:30:35 +0800 |
commit | 984f7a9fd3d4ad4c6b51fa5c54c3550756056723 (patch) | |
tree | 222b8b0d6a5bd074394abe2b0d108aa46d61a9e6 /src/nvim/message.c | |
parent | 84b6ade41510ffad7d712abe2b010e4027b7033c (diff) | |
download | rneovim-984f7a9fd3d4ad4c6b51fa5c54c3550756056723.tar.gz rneovim-984f7a9fd3d4ad4c6b51fa5c54c3550756056723.tar.bz2 rneovim-984f7a9fd3d4ad4c6b51fa5c54c3550756056723.zip |
vim-patch:9.0.0245: mechanism to prevent recursive screen updating is incomplete (#27448)
Problem: Mechanism to prevent recursive screen updating is incomplete.
Solution: Add "redraw_not_allowed" and set it in build_stl_str_hl().
(issue vim/vim#10952)
https://github.com/vim/vim/commit/471c0fa3eed4f6207d1cb7636970547bfd2eee26
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src/nvim/message.c')
-rw-r--r-- | src/nvim/message.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/nvim/message.c b/src/nvim/message.c index d879fa1423..b4e1d61cc7 100644 --- a/src/nvim/message.c +++ b/src/nvim/message.c @@ -2419,9 +2419,7 @@ static void inc_msg_scrolled(void) xfree(tofree); } msg_scrolled++; - if (must_redraw < UPD_VALID) { - must_redraw = UPD_VALID; - } + set_must_redraw(UPD_VALID); } static msgchunk_T *last_msgchunk = NULL; // last displayed text @@ -3067,9 +3065,7 @@ void msg_ext_clear_later(void) { if (msg_ext_is_visible()) { msg_ext_need_clear = true; - if (must_redraw < UPD_VALID) { - must_redraw = UPD_VALID; - } + set_must_redraw(UPD_VALID); } } |