forked from aniani/vim
patch 8.2.0197: some Ex commands not sufficiently tested
Problem: Some Ex commands not sufficiently tested. Solution: Add more tests. (Yegappan Lakshmanan, closes #5565)
This commit is contained in:
@@ -433,6 +433,21 @@ func Test_format_align()
|
||||
call assert_equal("\t\t Vim", getline(1))
|
||||
q!
|
||||
|
||||
" align text with 'rightleft'
|
||||
if has('rightleft')
|
||||
new
|
||||
call setline(1, 'Vim')
|
||||
setlocal rightleft
|
||||
left 20
|
||||
setlocal norightleft
|
||||
call assert_equal("\t\t Vim", getline(1))
|
||||
setlocal rightleft
|
||||
right
|
||||
setlocal norightleft
|
||||
call assert_equal("Vim", getline(1))
|
||||
close!
|
||||
endif
|
||||
|
||||
set tw&
|
||||
endfunc
|
||||
|
||||
|
||||
Reference in New Issue
Block a user