mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -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:
@@ -3937,14 +3937,12 @@ wildmenu_process_key(cmdline_info_T *cclp, int key, expand_T *xp)
|
||||
wildmenu_cleanup(cmdline_info_T *cclp UNUSED)
|
||||
{
|
||||
int skt = KeyTyped;
|
||||
#ifdef FEAT_EVAL
|
||||
int old_RedrawingDisabled = RedrawingDisabled;
|
||||
#endif
|
||||
|
||||
if (!p_wmnu || wild_menu_showing == 0)
|
||||
return;
|
||||
|
||||
#ifdef FEAT_EVAL
|
||||
int save_RedrawingDisabled = RedrawingDisabled;
|
||||
if (cclp->input_fn)
|
||||
RedrawingDisabled = 0;
|
||||
#endif
|
||||
@@ -3974,7 +3972,7 @@ wildmenu_cleanup(cmdline_info_T *cclp UNUSED)
|
||||
wild_menu_showing = 0;
|
||||
#ifdef FEAT_EVAL
|
||||
if (cclp->input_fn)
|
||||
RedrawingDisabled = old_RedrawingDisabled;
|
||||
RedrawingDisabled = save_RedrawingDisabled;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user