From cd95ea5d48daa271e323b1eee862e25b49d379d1 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sun, 9 Mar 2025 06:23:25 +0800 Subject: vim-patch:9.1.1185: endless loop with completefuzzycollect and no match found Problem: endless loop with completefuzzycollect and no match found Solution: move pointer to line end and break loop closes: vim/vim#16820 https://github.com/vim/vim/commit/dd42b05f8a37df03a9b77a16a47c08ab33af2b1f Co-authored-by: glepnir --- test/old/testdir/test_ins_complete.vim | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test') diff --git a/test/old/testdir/test_ins_complete.vim b/test/old/testdir/test_ins_complete.vim index cd2f5d9307..51c1cc3359 100644 --- a/test/old/testdir/test_ins_complete.vim +++ b/test/old/testdir/test_ins_complete.vim @@ -3038,6 +3038,11 @@ func Test_cfc_with_longest() call writefile([' auto int enum register', 'why'], 'test_case4.txt', 'D') exe "normal ggdGSe\\\" call assert_equal("enum", getline('.')) + + set complete=ktest_case5.txt + call writefile(['hello friends', 'go', 'hero'], 'test_case5.txt', 'D') + exe "normal ggdGSh\\\" + call assert_equal("hero", getline('.')) set complete& " file -- cgit