save_w_leftcol = curwin->w_leftcol;
n = ins_compl_next(TRUE, ins_compl_key2count(c), insert_match);
+ // Reset autocompletion timer expiry flag
+ if (compl_autocomplete)
+ compl_time_slice_expired = FALSE;
+
// may undisplay the popup menu
ins_compl_upd_pum();
call StopVimInTerminal(buf)
endfunc
+" Issue 19130
+func Test_helptags_autocomplete_timeout()
+ func! TestComplete(findstart, base)
+ if a:findstart
+ return col('.') - 1
+ else
+ sleep 310m " Exceed timeout
+ return ["foo"]
+ endif
+ endfunc
+
+ call test_override("char_avail", 1)
+ new
+ set autocomplete completeopt=fuzzy complete=.,FTestComplete
+ call feedkeys("Goa\<Esc>0", 'tx!')
+ call feedkeys(":h\<CR>", 'tx') " used to throw E149 exception
+ call test_override("char_avail", 0)
+ set autocomplete& completeopt& complete&
+ bw!
+endfunc
+
" vim: shiftwidth=2 sts=2 expandtab nofoldenable