diff options
author | zeertzjq <zeertzjq@outlook.com> | 2025-03-14 07:42:54 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2025-03-27 07:26:42 +0800 |
commit | e39cdafed96813567128c931a6b784b6858dcc13 (patch) | |
tree | 94e60e20ce3f0767d80d70cec9b180e30d0d4c5c /test | |
parent | 5975ddbdb85073ce055a24915de7f6960e201dc4 (diff) | |
download | rneovim-e39cdafed96813567128c931a6b784b6858dcc13.tar.gz rneovim-e39cdafed96813567128c931a6b784b6858dcc13.tar.bz2 rneovim-e39cdafed96813567128c931a6b784b6858dcc13.zip |
vim-patch:9.1.1201: 'completefuzzycollect' does not handle dictionary correctly
Problem: 'completefuzzycollect' does not handle dictionary correctly
Solution: check for ctrl_x_mode_dictionary (glepnir)
closes: vim/vim#16867
https://github.com/vim/vim/commit/587601671cd06ddc4d78f907d98578cdab96003f
Cherry-pick a documentation fix from later.
Co-authored-by: glepnir <glephunter@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/old/testdir/test_ins_complete.vim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/old/testdir/test_ins_complete.vim b/test/old/testdir/test_ins_complete.vim index 31991dd6f0..135e85b6c2 100644 --- a/test/old/testdir/test_ins_complete.vim +++ b/test/old/testdir/test_ins_complete.vim @@ -2988,8 +2988,17 @@ func Test_complete_fuzzy_collect() call feedkeys("Gofuzzy\<C-X>\<C-N>\<C-N>\<C-N>\<C-N>\<CR>\<Esc>0", 'tx!') call assert_equal('completefuzzycollect', getline(line('.') - 1)) + " keywords in 'dictonary' + call writefile(['hello', 'think'], 'test_dict.txt', 'D') + set dict=test_dict.txt + call feedkeys("Sh\<C-X>\<C-K>\<C-N>\<CR>\<Esc>0", 'tx!') + call assert_equal('hello', getline(line('.') - 1)) + call feedkeys("Sh\<C-X>\<C-K>\<C-N>\<C-N>\<CR>\<Esc>0", 'tx!') + call assert_equal('think', getline(line('.') - 1)) + bw! bw! + set dict& set completeopt& cfc& cpt& endfunc |