aboutsummaryrefslogtreecommitdiff
path: root/test/old/testdir/test_ins_complete.vim
diff options
context:
space:
mode:
Diffstat (limited to 'test/old/testdir/test_ins_complete.vim')
-rw-r--r--test/old/testdir/test_ins_complete.vim8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/old/testdir/test_ins_complete.vim b/test/old/testdir/test_ins_complete.vim
index 7fcc4bae36..4d4a17e850 100644
--- a/test/old/testdir/test_ins_complete.vim
+++ b/test/old/testdir/test_ins_complete.vim
@@ -2873,6 +2873,14 @@ func Test_complete_fuzzy_match()
call assert_equal("for", g:abbr)
call assert_equal(2, g:selected)
+ set cot=menu,menuone,noselect,fuzzy
+ call feedkeys("i\<C-R>=CompAnother()\<CR>\<C-N>\<C-N>\<C-N>\<C-N>", 'tx')
+ call assert_equal("foo", g:word)
+ call feedkeys("i\<C-R>=CompAnother()\<CR>\<C-P>", 'tx')
+ call assert_equal("foo", g:word)
+ call feedkeys("i\<C-R>=CompAnother()\<CR>\<C-P>\<C-P>", 'tx')
+ call assert_equal("for", g:abbr)
+
" clean up
set omnifunc=
bw!