mirror of
https://github.com/neovim/neovim.git
synced 2025-12-10 16:42:42 +00:00
vim-patch:7.4.410
Problem: Fold does not open after search when there is a CmdwinLeave
autocommand.
Solution: Restore KeyTyped. (Jacob Niehus)
https://code.google.com/p/vim/source/detail?r=v7-4-410
This commit is contained in:
@@ -5200,9 +5200,14 @@ static int ex_window(void)
|
||||
|
||||
RedrawingDisabled = i;
|
||||
|
||||
int save_KeyTyped = KeyTyped;
|
||||
|
||||
/* Trigger CmdwinLeave autocommands. */
|
||||
apply_autocmds(EVENT_CMDWINLEAVE, typestr, typestr, FALSE, curbuf);
|
||||
|
||||
/* Restore KeyTyped in case it is modified by autocommands */
|
||||
KeyTyped = save_KeyTyped;
|
||||
|
||||
/* Restore the command line info. */
|
||||
ccline = save_ccline;
|
||||
cmdwin_type = 0;
|
||||
|
||||
Reference in New Issue
Block a user