To: vim_dev@googlegroups.com Subject: Patch 8.2.2937 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.2937 Problem: Popup test fails if rightleft feature not enabled. Solution: Check that the rightleft feature is available. (Dominique Pellé, closes #8321) Files: src/testdir/test_popup.vim *** ../vim-8.2.2936/src/testdir/test_popup.vim 2021-05-22 17:12:03.974528010 +0200 --- src/testdir/test_popup.vim 2021-06-04 21:09:04.833416777 +0200 *************** *** 1147,1153 **** --- 1147,1155 ---- " Test for the popup menu with the 'rightleft' option set func Test_pum_rightleft() + CheckFeature rightleft CheckScreendump + let lines =<< trim END abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz vim *************** *** 1204,1214 **** 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}) call StopVimInTerminal(buf) call delete('Xtest1') --- 1206,1218 ---- call term_sendkeys(buf, "\\dd") call term_wait(buf) ! 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') *** ../vim-8.2.2936/src/version.c 2021-06-04 21:00:27.958234335 +0200 --- src/version.c 2021-06-04 21:08:03.573529020 +0200 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 2937, /**/ -- SIGIRO -- irony detected (iron core dumped) /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///