From: zeertzjq Date: Wed, 16 Apr 2025 16:23:23 +0000 (+0200) Subject: patch 9.1.1309: tests: no test for 'pummaxwidth' with non-truncated "kind" X-Git-Tag: v9.1.1309^0 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=031919c7ac66c4fcff3719b4f4158887b68d3315;p=thirdparty%2Fvim.git 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 Signed-off-by: Christian Brabandt --- 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 0000000000..53def2cfc3 --- /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 0000000000..fa95a1ead2 --- /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 ac879d24ff..f1fc9600c1 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, "\:set norightleft\") endif + call term_sendkeys(buf, ":set pummaxwidth=16\") + call TermWait(buf, 50) + call term_sendkeys(buf, "S\\") + call VerifyScreenDump(buf, 'Test_pum_maxwidth_21', {'rows': 8}) + call term_sendkeys(buf, "\") + + if has('rightleft') + call term_sendkeys(buf, ":set rightleft\") + call TermWait(buf, 50) + call term_sendkeys(buf, "S\\") + call VerifyScreenDump(buf, 'Test_pum_maxwidth_22', {'rows': 8}) + call term_sendkeys(buf, "\:set norightleft\") + endif + call StopVimInTerminal(buf) endfunc diff --git a/src/version.c b/src/version.c index ec3e1a36d4..cf494034fc 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, /**/