mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04:00
patch 9.0.1571: RedrawingDisabled not used consistently
Problem: RedrawingDisabled not used consistently. Solution: Avoid RedrawingDisabled going negative. Set RedrawingDisabled in win_split_ins(). (closes #11961)
This commit is contained in:
@@ -4545,7 +4545,7 @@ open_cmdwin(void)
|
||||
if (restart_edit != 0) // autocmd with ":startinsert"
|
||||
stuffcharReadbuff(K_NOP);
|
||||
|
||||
i = RedrawingDisabled;
|
||||
int save_RedrawingDisabled = RedrawingDisabled;
|
||||
RedrawingDisabled = 0;
|
||||
|
||||
/*
|
||||
@@ -4553,7 +4553,7 @@ open_cmdwin(void)
|
||||
*/
|
||||
main_loop(TRUE, FALSE);
|
||||
|
||||
RedrawingDisabled = i;
|
||||
RedrawingDisabled = save_RedrawingDisabled;
|
||||
|
||||
# ifdef FEAT_FOLDING
|
||||
save_KeyTyped = KeyTyped;
|
||||
|
Reference in New Issue
Block a user