diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-08-22 15:19:16 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-08-22 15:19:16 +0100 |
commit | 471c0fa3eed4f6207d1cb7636970547bfd2eee26 (patch) | |
tree | a63888422f4a84f9e73b3e23025090127c31fe25 /src/change.c | |
parent | f768c3d19c518822d89dec4cc3947ddeea249316 (diff) |
patch 9.0.0245: mechanism to prevent recursive screen updating is incompletev9.0.0245
Problem: Mechanism to prevent recursive screen updating is incomplete.
Solution: Add "redraw_not_allowed" and set it in build_stl_str_hl().
(issue #10952)
Diffstat (limited to 'src/change.c')
-rw-r--r-- | src/change.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/change.c b/src/change.c index 9e1c1c9188..51ffe28524 100644 --- a/src/change.c +++ b/src/change.c @@ -559,7 +559,7 @@ changed_common( linenr_T last = lnume + xtra - 1; // last line after the change #endif // Mark this window to be redrawn later. - if (wp->w_redr_type < UPD_VALID) + if (!redraw_not_allowed && wp->w_redr_type < UPD_VALID) wp->w_redr_type = UPD_VALID; // Check if a change in the buffer has invalidated the cached @@ -671,8 +671,7 @@ changed_common( // Call update_screen() later, which checks out what needs to be redrawn, // since it notices b_mod_set and then uses b_mod_*. - if (must_redraw < UPD_VALID) - must_redraw = UPD_VALID; + set_must_redraw(UPD_VALID); // when the cursor line is changed always trigger CursorMoved if (lnum <= curwin->w_cursor.lnum |