Skip to content

Commit 3af0a8d

Browse files
glepnirchrisbra
authored andcommitted
patch 9.1.1125: cannot loop through pum menu with multiline items
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: #16641 closes: #16674 Signed-off-by: glepnir <[email protected]> Signed-off-by: Christian Brabandt <[email protected]>
1 parent 08a83a0 commit 3af0a8d

3 files changed

Lines changed: 11 additions & 1 deletion

File tree

src/insexpand.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1368,7 +1368,7 @@ ins_compl_build_pum(void)
13681368
compl_shown_match = compl;
13691369
}
13701370

1371-
if (!shown_match_ok && compl == compl_shown_match && !compl_no_select)
1371+
if (!shown_match_ok && compl == compl_shown_match)
13721372
{
13731373
cur = i;
13741374
shown_match_ok = TRUE;

src/testdir/test_ins_complete.vim

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2891,6 +2891,14 @@ func Test_complete_fuzzy_match()
28912891
call assert_equal("for", g:abbr)
28922892
call assert_equal(2, g:selected)
28932893

2894+
set cot=menu,menuone,noselect,fuzzy
2895+
call feedkeys("i\<C-R>=CompAnother()\<CR>\<C-N>\<C-N>\<C-N>\<C-N>", 'tx')
2896+
call assert_equal("foo", g:word)
2897+
call feedkeys("i\<C-R>=CompAnother()\<CR>\<C-P>", 'tx')
2898+
call assert_equal("foo", g:word)
2899+
call feedkeys("i\<C-R>=CompAnother()\<CR>\<C-P>\<C-P>", 'tx')
2900+
call assert_equal("for", g:abbr)
2901+
28942902
" clean up
28952903
set omnifunc=
28962904
bw!

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,8 @@ static char *(features[]) =
704704

705705
static int included_patches[] =
706706
{ /* Add new patch number below this line */
707+
/**/
708+
1125,
707709
/**/
708710
1124,
709711
/**/

0 commit comments

Comments
 (0)