comparison src/misc1.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 db0939444c96
comparison
equal deleted inserted replaced
29811:4a20a89bf324 29812:68ef14b21d01
411 return 1; // be quick for an empty line 411 return 1; // be quick for an empty line
412 win_linetabsize_cts(&cts, (colnr_T)MAXCOL); 412 win_linetabsize_cts(&cts, (colnr_T)MAXCOL);
413 clear_chartabsize_arg(&cts); 413 clear_chartabsize_arg(&cts);
414 col = (int)cts.cts_vcol; 414 col = (int)cts.cts_vcol;
415 415
416 /* 416 // If list mode is on, then the '$' at the end of the line may take up one
417 * If list mode is on, then the '$' at the end of the line may take up one 417 // extra column.
418 * extra column.
419 */
420 if (wp->w_p_list && wp->w_lcs_chars.eol != NUL) 418 if (wp->w_p_list && wp->w_lcs_chars.eol != NUL)
421 col += 1; 419 col += 1;
422 420
423 /* 421 /*
424 * Add column offset for 'number', 'relativenumber' and 'foldcolumn'. 422 * Add column offset for 'number', 'relativenumber' and 'foldcolumn'.
583 581
584 FOR_ALL_WINDOWS(wp) 582 FOR_ALL_WINDOWS(wp)
585 if (wp->w_buffer == buf && wp->w_status_height) 583 if (wp->w_buffer == buf && wp->w_status_height)
586 { 584 {
587 wp->w_redr_status = TRUE; 585 wp->w_redr_status = TRUE;
588 if (must_redraw < UPD_VALID) 586 set_must_redraw(UPD_VALID);
589 must_redraw = UPD_VALID;
590 } 587 }
591 } 588 }
592 589
593 /* 590 /*
594 * Ask for a reply from the user, a 'y' or a 'n', with prompt "str" (which 591 * Ask for a reply from the user, a 'y' or a 'n', with prompt "str" (which