Mercurial > vim
comparison src/message.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 | 455e7588b979 |
children | a6721cafbc74 |
comparison
equal
deleted
inserted
replaced
29811:4a20a89bf324 | 29812:68ef14b21d01 |
---|---|
1141 int had_got_int; | 1141 int had_got_int; |
1142 int save_reg_recording; | 1142 int save_reg_recording; |
1143 FILE *save_scriptout; | 1143 FILE *save_scriptout; |
1144 | 1144 |
1145 if (redraw == TRUE) | 1145 if (redraw == TRUE) |
1146 must_redraw = UPD_CLEAR; | 1146 set_must_redraw(UPD_CLEAR); |
1147 | 1147 |
1148 // If using ":silent cmd", don't wait for a return. Also don't set | 1148 // If using ":silent cmd", don't wait for a return. Also don't set |
1149 // need_wait_return to do it later. | 1149 // need_wait_return to do it later. |
1150 if (msg_silent != 0) | 1150 if (msg_silent != 0) |
1151 return; | 1151 return; |
2488 set_vim_var_string(VV_SCROLLSTART, p, -1); | 2488 set_vim_var_string(VV_SCROLLSTART, p, -1); |
2489 vim_free(tofree); | 2489 vim_free(tofree); |
2490 } | 2490 } |
2491 #endif | 2491 #endif |
2492 ++msg_scrolled; | 2492 ++msg_scrolled; |
2493 if (must_redraw < UPD_VALID) | 2493 set_must_redraw(UPD_VALID); |
2494 must_redraw = UPD_VALID; | |
2495 } | 2494 } |
2496 | 2495 |
2497 /* | 2496 /* |
2498 * To be able to scroll back at the "more" and "hit-enter" prompts we need to | 2497 * To be able to scroll back at the "more" and "hit-enter" prompts we need to |
2499 * store the displayed text and remember where screen lines start. | 2498 * store the displayed text and remember where screen lines start. |