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)
diff --git a/src/misc1.c b/src/misc1.c
index 6b01ef2..6383922 100644
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -413,10 +413,8 @@
clear_chartabsize_arg(&cts);
col = (int)cts.cts_vcol;
- /*
- * If list mode is on, then the '$' at the end of the line may take up one
- * extra column.
- */
+ // If list mode is on, then the '$' at the end of the line may take up one
+ // extra column.
if (wp->w_p_list && wp->w_lcs_chars.eol != NUL)
col += 1;
@@ -585,8 +583,7 @@
if (wp->w_buffer == buf && wp->w_status_height)
{
wp->w_redr_status = TRUE;
- if (must_redraw < UPD_VALID)
- must_redraw = UPD_VALID;
+ set_must_redraw(UPD_VALID);
}
}