mirror of
https://github.com/vim/vim.git
synced 2025-11-13 22:54:27 -05:00
patch 8.2.1415: closing a popup window with CTRL-C interrupts 'statusline'
Problem: Closing a popup window with CTRL-C interrupts 'statusline' if it
calls a function.
Solution: Reset got_int while redrawing. (closes #6675)
This commit is contained in:
@@ -3209,7 +3209,14 @@ popup_do_filter(int c)
|
||||
res = invoke_popup_filter(wp, c);
|
||||
|
||||
if (must_redraw > was_must_redraw)
|
||||
{
|
||||
int save_got_int = got_int;
|
||||
|
||||
// Reset got_int to avoid a function used in the statusline aborts.
|
||||
got_int = FALSE;
|
||||
redraw_after_callback(FALSE);
|
||||
got_int |= save_got_int;
|
||||
}
|
||||
recursive = FALSE;
|
||||
KeyTyped = save_KeyTyped;
|
||||
return res;
|
||||
|
||||
Reference in New Issue
Block a user