From: Dominique Pelle Date: Fri, 4 Jun 2021 19:09:55 +0000 (+0200) Subject: patch 8.2.2937: popup test fails if rightleft feature not enabled X-Git-Tag: v8.2.2937 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=56cddb38790ba535919524d9d2f32dbec9f3f07a;p=vim patch 8.2.2937: popup test fails if rightleft feature not enabled Problem: Popup test fails if rightleft feature not enabled. Solution: Check that the rightleft feature is available. (Dominique Pellé, closes #8321) --- diff --git a/src/testdir/test_popup.vim b/src/testdir/test_popup.vim index 88aeafda7..1d0a77c17 100644 --- a/src/testdir/test_popup.vim +++ b/src/testdir/test_popup.vim @@ -1147,7 +1147,9 @@ endfunc " Test for the popup menu with the 'rightleft' option set func Test_pum_rightleft() + CheckFeature rightleft CheckScreendump + let lines =<< trim END abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz vim @@ -1204,11 +1206,13 @@ func Test_pum_scrollbar() call term_sendkeys(buf, "\\dd") call term_wait(buf) - call term_sendkeys(buf, ":set rightleft\") - call term_wait(buf) - call term_sendkeys(buf, "Go\\\") - call term_wait(buf) - call VerifyScreenDump(buf, 'Test_pum_scrollbar_02', {'rows': 7}) + if has('rightleft') + call term_sendkeys(buf, ":set rightleft\") + call term_wait(buf) + call term_sendkeys(buf, "Go\\\") + call term_wait(buf) + call VerifyScreenDump(buf, 'Test_pum_scrollbar_02', {'rows': 7}) + endif call StopVimInTerminal(buf) call delete('Xtest1') diff --git a/src/version.c b/src/version.c index a230c4eb0..d59df5c3c 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2937, /**/ 2936, /**/