mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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 vim/vim#8321)
56cddb3879
This commit is contained in:
parent
1b13c744ea
commit
60bf49ab1c
@ -1079,7 +1079,9 @@ endfunc
|
|||||||
|
|
||||||
" Test for the popup menu with the 'rightleft' option set
|
" Test for the popup menu with the 'rightleft' option set
|
||||||
func Test_pum_rightleft()
|
func Test_pum_rightleft()
|
||||||
|
CheckFeature rightleft
|
||||||
CheckScreendump
|
CheckScreendump
|
||||||
|
|
||||||
let lines =<< trim END
|
let lines =<< trim END
|
||||||
abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz
|
abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz
|
||||||
vim
|
vim
|
||||||
@ -1136,11 +1138,13 @@ func Test_pum_scrollbar()
|
|||||||
call term_sendkeys(buf, "\<C-E>\<Esc>dd")
|
call term_sendkeys(buf, "\<C-E>\<Esc>dd")
|
||||||
call term_wait(buf)
|
call term_wait(buf)
|
||||||
|
|
||||||
call term_sendkeys(buf, ":set rightleft\<CR>")
|
if has('rightleft')
|
||||||
call term_wait(buf)
|
call term_sendkeys(buf, ":set rightleft\<CR>")
|
||||||
call term_sendkeys(buf, "Go\<C-P>\<C-P>\<C-P>")
|
call term_wait(buf)
|
||||||
call term_wait(buf)
|
call term_sendkeys(buf, "Go\<C-P>\<C-P>\<C-P>")
|
||||||
call VerifyScreenDump(buf, 'Test_pum_scrollbar_02', {'rows': 7})
|
call term_wait(buf)
|
||||||
|
call VerifyScreenDump(buf, 'Test_pum_scrollbar_02', {'rows': 7})
|
||||||
|
endif
|
||||||
|
|
||||||
call StopVimInTerminal(buf)
|
call StopVimInTerminal(buf)
|
||||||
call delete('Xtest1')
|
call delete('Xtest1')
|
||||||
|
Loading…
Reference in New Issue
Block a user