patch 9.1.1309: tests: no test for 'pummaxwidth' with non-truncated "kind"

Commit: 
https://github.com/vim/vim/commit/031919c7ac66c4fcff3719b4f4158887b68d3315
Author: zeertzjq <zeert...@outlook.com>
Date:   Wed Apr 16 18:23:23 2025 +0200

    patch 9.1.1309: tests: no test for 'pummaxwidth' with non-truncated "kind"
    
    Problem:  tests: no test for 'pummaxwidth' with non-truncated "kind".
    Solution: Add a test with "kind" and larger 'pummaxwidth' (zeertzjq).
    
    closes: #17126
    
    Signed-off-by: zeertzjq <zeert...@outlook.com>
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/testdir/dumps/Test_pum_maxwidth_21.dump 
b/src/testdir/dumps/Test_pum_maxwidth_21.dump
new file mode 100644
index 000000000..53def2cfc
--- /dev/null
+++ b/src/testdir/dumps/Test_pum_maxwidth_21.dump
@@ -0,0 +1,8 @@
+|f+0&#ffffff0|o@1> @71
+|f+0#0000001#e0e0e08|o@1| @7|f|o@1|K|>| +0#4040ff13#ffffff0@58
+|b+0#0000001#ffd7ff255|a|r| @7|一*&|二|>+&| +0#4040ff13#ffffff0@58
+|一*0#0000001#ffd7ff255|二|三|四|五| +&|m|u|l|t|i| +0#4040ff13#ffffff0@58
+|~| @73
+|~| @73
+|~| @73
+|~| @73
diff --git a/src/testdir/dumps/Test_pum_maxwidth_22.dump 
b/src/testdir/dumps/Test_pum_maxwidth_22.dump
new file mode 100644
index 000000000..fa95a1ead
--- /dev/null
+++ b/src/testdir/dumps/Test_pum_maxwidth_22.dump
@@ -0,0 +1,8 @@
+| +0&#ffffff0@70> |o@1|f
+| +0#4040ff13&@58|<+0#0000001#e0e0e08|K|o@1|f| @7|o@1|f
+| +0#4040ff13#ffffff0@58|<+0#0000001#ffd7ff255|二*&|一| +&@7|r|a|b
+| +0#4040ff13#ffffff0@58|i+0#0000001#ffd7ff255|t|l|u|m| |五*&|四|三|二|一
+| +0#4040ff13#ffffff0@73|~
+| @73|~
+| @73|~
+| @73|~
diff --git a/src/testdir/test_popup.vim b/src/testdir/test_popup.vim
index ac879d24f..f1fc9600c 100644
--- a/src/testdir/test_popup.vim
+++ b/src/testdir/test_popup.vim
@@ -2154,6 +2154,20 @@ func Test_pum_maxwidth_multibyte()
     call term_sendkeys(buf, "\<Esc>:set norightleft\<CR>")
   endif
 
+  call term_sendkeys(buf, ":set pummaxwidth=16\<CR>")
+  call TermWait(buf, 50)
+  call term_sendkeys(buf, "S\<C-X>\<C-O>")
+  call VerifyScreenDump(buf, 'Test_pum_maxwidth_21', {'rows': 8})
+  call term_sendkeys(buf, "\<ESC>")
+
+  if has('rightleft')
+    call term_sendkeys(buf, ":set rightleft\<CR>")
+    call TermWait(buf, 50)
+    call term_sendkeys(buf, "S\<C-X>\<C-O>")
+    call VerifyScreenDump(buf, 'Test_pum_maxwidth_22', {'rows': 8})
+    call term_sendkeys(buf, "\<Esc>:set norightleft\<CR>")
+  endif
+
   call StopVimInTerminal(buf)
 endfunc
 
diff --git a/src/version.c b/src/version.c
index ec3e1a36d..cf494034f 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 */
+/**/
+    1309,
 /**/
     1308,
 /**/

-- 
-- 
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/E1u55eG-006nTO-5t%40256bit.org.

Raspunde prin e-mail lui