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 88aeafd..1d0a77c 100644
--- a/src/testdir/test_popup.vim
+++ b/src/testdir/test_popup.vim
@@ -1147,7 +1147,9 @@
" 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 @@
call term_sendkeys(buf, "\<C-E>\<Esc>dd")
call term_wait(buf)
- call term_sendkeys(buf, ":set rightleft\<CR>")
- call term_wait(buf)
- call term_sendkeys(buf, "Go\<C-P>\<C-P>\<C-P>")
- call term_wait(buf)
- call VerifyScreenDump(buf, 'Test_pum_scrollbar_02', {'rows': 7})
+ if has('rightleft')
+ call term_sendkeys(buf, ":set rightleft\<CR>")
+ call term_wait(buf)
+ call term_sendkeys(buf, "Go\<C-P>\<C-P>\<C-P>")
+ 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 a230c4e..d59df5c 100644
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 2937,
+/**/
2936,
/**/
2935,