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)
diff --git a/src/popupwin.c b/src/popupwin.c
index cc0843b..ff9e810 100644
--- a/src/popupwin.c
+++ b/src/popupwin.c
@@ -3209,7 +3209,14 @@
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;