From e39cdafed96813567128c931a6b784b6858dcc13 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Fri, 14 Mar 2025 07:42:54 +0800 Subject: 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 --- test/old/testdir/test_ins_complete.vim | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test') 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\\\\\\\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\\\\\0", 'tx!') + call assert_equal('hello', getline(line('.') - 1)) + call feedkeys("Sh\\\\\\0", 'tx!') + call assert_equal('think', getline(line('.') - 1)) + bw! bw! + set dict& set completeopt& cfc& cpt& endfunc -- cgit