{
#ifdef FEAT_SEARCH_EXTRA
// Apply search highlighting
- if (wild_type == WILD_APPLY)
- {
- if (is_state.winid != curwin->w_id)
- init_incsearch_state(&is_state);
- if (KeyTyped || vpeekc() == NUL)
- may_do_incsearch_highlighting(firstc, count, &is_state);
- }
+ if (is_state.winid != curwin->w_id)
+ init_incsearch_state(&is_state);
+ if (KeyTyped || vpeekc() == NUL)
+ may_do_incsearch_highlighting(firstc, count, &is_state);
#endif
wild_type = 0;
goto cmdline_not_changed;
call term_sendkeys(buf, "\<c-n>\<c-y>")
call VerifyScreenDump(buf, 'Test_search_wildmenu_8', {})
+ " 'incsearch' highlight is restored after dismissing popup (Ctrl_E)
+ call term_sendkeys(buf, "\<esc>:set wop=pum is hls&\<cr>")
+ call term_sendkeys(buf, "gg/th\<tab>\<c-e>")
+ call TermWait(buf, 50)
+ call VerifyScreenDump(buf, 'Test_search_wildmenu_9', {})
+
call term_sendkeys(buf, "\<esc>")
call StopVimInTerminal(buf)
endfunc