patch 9.1.2070: completion: autocomplete breaks  with large dict

Commit: 
https://github.com/vim/vim/commit/a9711b5395ae07cac07ca3a26c0a493f27084f15
Author: Girish Palya <[email protected]>
Date:   Fri Jan 9 16:59:30 2026 +0000

    patch 9.1.2070: completion: autocomplete breaks  with large dict
    
    Problem:  Autocomplete breaks ":help" when 'dict' points to a large file
              (lxhillwind)
    Solution: Reset autocompletion timer expiry flag (Girish Palya)
    
    fixes:  #19130
    closes: #19137
    
    Signed-off-by: Girish Palya <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/src/insexpand.c b/src/insexpand.c
index 4e3973a9a..907d36aee 100644
--- a/src/insexpand.c
+++ b/src/insexpand.c
@@ -7217,6 +7217,10 @@ ins_complete(int c, int enable_pum)
     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();
 
diff --git a/src/testdir/test_ins_complete.vim 
b/src/testdir/test_ins_complete.vim
index f839af77e..dcad25cfb 100644
--- a/src/testdir/test_ins_complete.vim
+++ b/src/testdir/test_ins_complete.vim
@@ -6175,4 +6175,25 @@ func Test_fuzzy_filenames_compl_autocompl()
   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
diff --git a/src/version.c b/src/version.c
index 50544f861..6a94b422a 100644
--- a/src/version.c
+++ b/src/version.c
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2070,
 /**/
     2069,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1veG4l-004b7z-Gw%40256bit.org.

Raspunde prin e-mail lui