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;
--- /dev/null
+> +0&#ffffff0@36||+1&&| +0&&@36
+|~+0#4040ff13&| @35||+1#0000000&|~+0#4040ff13&| @35
+|~| @35||+1#0000000&|~+0#4040ff13&| @35
+|~| @35||+1#0000000&|~+0#4040ff13&| @35
+|~| @35||+1#0000000&|~+0#4040ff13&| @35
+|~| @35||+1#0000000&|~+0#4040ff13&| @35
+|~| @35||+1#0000000&|~+0#4040ff13&| @35
+|~| @35||+1#0000000&|~+0#4040ff13&| @35
+|[+3#0000000&|N|o| |N|a|m|e|]| @9|0|,|0|-|1| @9|A|l@1| |[+1&&|N|o| |N|a|m|e|]| @9|0|,|0|-|1| @9|A|l@1
+| +0&&@74
unlet g:bytes
endfunc
+func Test_popupwin_filter_close_ctrl_c()
+ CheckScreendump
+
+ let lines =<< trim END
+ vsplit
+ set laststatus=2
+ set statusline=%!Statusline()
+
+ function Statusline() abort
+ return '%<%f %h%m%r%=%-14.(%l,%c%V%) %P'
+ endfunction
+
+ call popup_create('test test test test...', {'filter': {-> 0}})
+ END
+ call writefile(lines, 'XtestPopupCtrlC')
+
+ let buf = RunVimInTerminal('-S XtestPopupCtrlC', #{rows: 10})
+
+ call term_sendkeys(buf, "\<C-C>")
+ call VerifyScreenDump(buf, 'Test_popupwin_ctrl_c', {})
+
+ call StopVimInTerminal(buf)
+ call delete('XtestPopupCorners')
+endfunc
+
func Test_popupwin_atcursor_far_right()
new
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1415,
/**/
1414,
/**/