aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2025-02-21 08:24:52 +0800
committerGitHub <noreply@github.com>2025-02-21 08:24:52 +0800
commitb96c3d9a51ad37500623e45b143335b3d49a12dd (patch)
tree14c2ef6f5fd78c35adf9435f0c1092b6d9669f6e /test
parent1fb606b2ff68b42f77aad6f9a6e00c37e1b2aab0 (diff)
downloadrneovim-b96c3d9a51ad37500623e45b143335b3d49a12dd.tar.gz
rneovim-b96c3d9a51ad37500623e45b143335b3d49a12dd.tar.bz2
rneovim-b96c3d9a51ad37500623e45b143335b3d49a12dd.zip
vim-patch:9.1.1125: cannot loop through pum menu with multiline items (#32543)
Problem: cannot loop through pum menu with multiline items with fuzzy and noselect in 'completeopt' (Tomasz N) Solution: remove unnecessary compl_no_select condition (glepnir) fixes: vim/vim#16641 closes: vim/vim#16674 https://github.com/vim/vim/commit/3af0a8d8f5b090a6a4b085e7b6ee0f5f87eda399 Co-authored-by: glepnir <glephunter@gmail.com>
Diffstat (limited to 'test')
-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!