diff options
author | zeertzjq <zeertzjq@outlook.com> | 2025-03-09 06:23:25 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2025-03-27 07:26:42 +0800 |
commit | cd95ea5d48daa271e323b1eee862e25b49d379d1 (patch) | |
tree | 00d61a38de7e69d1370740b38d5ea8e88a5fb7df /test | |
parent | 10fde593f177fb7655c5f1c2b9774509e90c6106 (diff) | |
download | rneovim-cd95ea5d48daa271e323b1eee862e25b49d379d1.tar.gz rneovim-cd95ea5d48daa271e323b1eee862e25b49d379d1.tar.bz2 rneovim-cd95ea5d48daa271e323b1eee862e25b49d379d1.zip |
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 <glephunter@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/old/testdir/test_ins_complete.vim | 5 |
1 files changed, 5 insertions, 0 deletions
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\<C-N>\<C-N>\<ESC>" call assert_equal("enum", getline('.')) + + set complete=ktest_case5.txt + call writefile(['hello friends', 'go', 'hero'], 'test_case5.txt', 'D') + exe "normal ggdGSh\<C-N>\<C-N>\<ESC>" + call assert_equal("hero", getline('.')) set complete& " file |