comparison src/change.c @ 29812:68ef14b21d01 v9.0.0245

patch 9.0.0245: mechanism to prevent recursive screen updating is incomplete Commit: https://github.com/vim/vim/commit/471c0fa3eed4f6207d1cb7636970547bfd2eee26 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Aug 22 15:19:16 2022 +0100 patch 9.0.0245: mechanism to prevent recursive screen updating is incomplete Problem: Mechanism to prevent recursive screen updating is incomplete. Solution: Add "redraw_not_allowed" and set it in build_stl_str_hl(). (issue #10952)
author Bram Moolenaar <Bram@vim.org>
date Mon, 22 Aug 2022 16:30:03 +0200
parents 89e1d67814a9
children 6c7eddcce52c
comparison
equal deleted inserted replaced
29811:4a20a89bf324 29812:68ef14b21d01
557 { 557 {
558 #ifdef FEAT_FOLDING 558 #ifdef FEAT_FOLDING
559 linenr_T last = lnume + xtra - 1; // last line after the change 559 linenr_T last = lnume + xtra - 1; // last line after the change
560 #endif 560 #endif
561 // Mark this window to be redrawn later. 561 // Mark this window to be redrawn later.
562 if (wp->w_redr_type < UPD_VALID) 562 if (!redraw_not_allowed && wp->w_redr_type < UPD_VALID)
563 wp->w_redr_type = UPD_VALID; 563 wp->w_redr_type = UPD_VALID;
564 564
565 // Check if a change in the buffer has invalidated the cached 565 // Check if a change in the buffer has invalidated the cached
566 // values for the cursor. 566 // values for the cursor.
567 #ifdef FEAT_FOLDING 567 #ifdef FEAT_FOLDING
669 #endif 669 #endif
670 } 670 }
671 671
672 // Call update_screen() later, which checks out what needs to be redrawn, 672 // Call update_screen() later, which checks out what needs to be redrawn,
673 // since it notices b_mod_set and then uses b_mod_*. 673 // since it notices b_mod_set and then uses b_mod_*.
674 if (must_redraw < UPD_VALID) 674 set_must_redraw(UPD_VALID);
675 must_redraw = UPD_VALID;
676 675
677 // when the cursor line is changed always trigger CursorMoved 676 // when the cursor line is changed always trigger CursorMoved
678 if (lnum <= curwin->w_cursor.lnum 677 if (lnum <= curwin->w_cursor.lnum
679 && lnume + (xtra < 0 ? -xtra : xtra) > curwin->w_cursor.lnum) 678 && lnume + (xtra < 0 ? -xtra : xtra) > curwin->w_cursor.lnum)
680 last_cursormoved.lnum = 0; 679 last_cursormoved.lnum = 0;