&& (wp->w_filter_mode & state) != 0)
res = invoke_popup_filter(wp, c);
+ if (must_redraw)
+ redraw_after_callback(FALSE);
recursive = FALSE;
KeyTyped = save_KeyTyped;
return res;
call win_execute(a:winid, "call setpos('.', [0, line('.') - 1, 1, 0])")
return 1
endif
- if a:key == 'x'
+ if a:key == ':'
call popup_close(a:winid)
- return 1
+ return 0
endif
return 0
endfunction
call term_sendkeys(buf, "0")
call VerifyScreenDump(buf, 'Test_popupwin_menu_filter_4', {})
- call term_sendkeys(buf, "x")
+ " check that when the popup is closed in the filter the screen is redrawn
+ call term_sendkeys(buf, ":")
+ call VerifyScreenDump(buf, 'Test_popupwin_menu_filter_5', {})
+ call term_sendkeys(buf, "\<CR>")
" clean up
call StopVimInTerminal(buf)