diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-08-30 16:22:08 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2025-03-27 07:26:42 +0800 |
commit | a9aedfbc5880b9ac25f7b0ac1dc49fa318dbe89b (patch) | |
tree | 95f243b7f7ef18c6a2c62aaa924acf9600e4e62a /test | |
parent | d5a6040967d8dd32b6cdeceb907ca4d50f56e4c2 (diff) | |
download | rneovim-a9aedfbc5880b9ac25f7b0ac1dc49fa318dbe89b.tar.gz rneovim-a9aedfbc5880b9ac25f7b0ac1dc49fa318dbe89b.tar.bz2 rneovim-a9aedfbc5880b9ac25f7b0ac1dc49fa318dbe89b.zip |
vim-patch:9.1.0605: internal error with fuzzy completion
Problem: internal error with fuzzy completion
(techntools)
Solution: only fuzzy complete the pattern after directory separator
(glepnir)
fixes: vim/vim#15287
closes: vim/vim#15291
https://github.com/vim/vim/commit/0be03e14b9a2899f5e96720e3b21935bd9d2d34e
Co-authored-by: glepnir <glephunter@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/old/testdir/test_ins_complete.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/old/testdir/test_ins_complete.vim b/test/old/testdir/test_ins_complete.vim index 9b123a65b6..381a69dd41 100644 --- a/test/old/testdir/test_ins_complete.vim +++ b/test/old/testdir/test_ins_complete.vim @@ -2871,6 +2871,10 @@ func Test_complete_fuzzy_match() call assert_equal('fobar', getline('.')) call feedkeys("Sfob\<C-X>\<C-f>\<C-N>\<Esc>0", 'tx!') call assert_equal('foobar', getline('.')) + call feedkeys("S../\<C-X>\<C-f>\<Esc>0", 'tx!') + call assert_match('../*', getline('.')) + call feedkeys("S../td\<C-X>\<C-f>\<Esc>0", 'tx!') + call assert_match('../testdir', getline('.')) " can get completion from other buffer set completeopt=fuzzy,menu,menuone @@ -2885,6 +2889,8 @@ func Test_complete_fuzzy_match() call assert_equal('Omnipotent', getline('.')) call feedkeys("Somp\<C-P>\<C-P>\<Esc>0", 'tx!') call assert_equal('Composite', getline('.')) + call feedkeys("S omp\<C-N>\<Esc>0", 'tx!') + call assert_equal(' completeness', getline('.')) " fuzzy on whole line completion call setline(1, ["world is on fire", "no one can save me but you", 'user can execute', '']) |