summaryrefslogtreecommitdiffstats
path: root/src/message.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-08-22 15:19:16 +0100
committerBram Moolenaar <Bram@vim.org>2022-08-22 15:19:16 +0100
commit471c0fa3eed4f6207d1cb7636970547bfd2eee26 (patch)
treea63888422f4a84f9e73b3e23025090127c31fe25 /src/message.c
parentf768c3d19c518822d89dec4cc3947ddeea249316 (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/message.c')
-rw-r--r--src/message.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/message.c b/src/message.c
index 11662ba6a5..46cf1e0272 100644
--- a/src/message.c
+++ b/src/message.c
@@ -1143,7 +1143,7 @@ wait_return(int redraw)
FILE *save_scriptout;
if (redraw == TRUE)
- must_redraw = UPD_CLEAR;
+ set_must_redraw(UPD_CLEAR);
// If using ":silent cmd", don't wait for a return. Also don't set
// need_wait_return to do it later.
@@ -2490,8 +2490,7 @@ inc_msg_scrolled(void)
}
#endif
++msg_scrolled;
- if (must_redraw < UPD_VALID)
- must_redraw = UPD_VALID;
+ set_must_redraw(UPD_VALID);
}
/*