diff options
author | zeertzjq <zeertzjq@outlook.com> | 2025-03-13 07:08:25 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2025-03-27 07:26:42 +0800 |
commit | 28f61994748e1edd5fb1755ddf2e5ca1324b5635 (patch) | |
tree | fdf9ed4c504c3359a35e51bcb7c978671271aba7 /test | |
parent | cd95ea5d48daa271e323b1eee862e25b49d379d1 (diff) | |
download | rneovim-28f61994748e1edd5fb1755ddf2e5ca1324b5635.tar.gz rneovim-28f61994748e1edd5fb1755ddf2e5ca1324b5635.tar.bz2 rneovim-28f61994748e1edd5fb1755ddf2e5ca1324b5635.zip |
vim-patch:9.1.1197: process_next_cpt_value() uses wrong condition
Problem: process_next_cpt_value() uses wrong condition
Solution: use cfc_has_mode() instead and remove redundant else if branch
(glepnir)
closes: vim/vim#16833
https://github.com/vim/vim/commit/53b14578e03f93a53fd6eb21c00caf96484742ed
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 51c1cc3359..31991dd6f0 100644 --- a/test/old/testdir/test_ins_complete.vim +++ b/test/old/testdir/test_ins_complete.vim @@ -2982,6 +2982,12 @@ func Test_complete_fuzzy_collect() call feedkeys("STe\<C-X>\<C-N>x\<CR>\<Esc>0", 'tx!') call assert_equal('Tex', getline(line('.') - 1)) + call setline(1, ['fuzzy', 'fuzzycollect', 'completefuzzycollect']) + call feedkeys("Gofuzzy\<C-X>\<C-N>\<C-N>\<C-N>\<CR>\<Esc>0", 'tx!') + call assert_equal('fuzzycollect', getline(line('.') - 1)) + call feedkeys("Gofuzzy\<C-X>\<C-N>\<C-N>\<C-N>\<C-N>\<CR>\<Esc>0", 'tx!') + call assert_equal('completefuzzycollect', getline(line('.') - 1)) + bw! bw! set completeopt& cfc& cpt& |