patch 9.1.1125: cannot loop through pum menu with multiline items

Commit: 
https://github.com/vim/vim/commit/3af0a8d8f5b090a6a4b085e7b6ee0f5f87eda399
Author: glepnir <glephun...@gmail.com>
Date:   Thu Feb 20 22:06:16 2025 +0100

    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 <glephun...@gmail.com>
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/insexpand.c b/src/insexpand.c
index f696097f3..f28015602 100644
--- a/src/insexpand.c
+++ b/src/insexpand.c
@@ -1368,7 +1368,7 @@ ins_compl_build_pum(void)
                        compl_shown_match = compl;
                }
 
-               if (!shown_match_ok && compl == compl_shown_match && 
!compl_no_select)
+               if (!shown_match_ok && compl == compl_shown_match)
                {
                    cur = i;
                    shown_match_ok = TRUE;
diff --git a/src/testdir/test_ins_complete.vim 
b/src/testdir/test_ins_complete.vim
index be7d80269..4ecf2893d 100644
--- a/src/testdir/test_ins_complete.vim
+++ b/src/testdir/test_ins_complete.vim
@@ -2891,6 +2891,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!
diff --git a/src/version.c b/src/version.c
index 33640818f..8d044d199 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1125,
 /**/
     1124,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1tlDsy-003AKV-HU%40256bit.org.

Raspunde prin e-mail lui