vim-patch:8.2.0180: test for wrapmargin fails if terminal is not 80 columns

Problem:    Test for wrapmargin fails if terminal is not 80 columns.
Solution:   Vertical split the window. (Ken Takata, closes vim/vim#5554)
0c3064b39b
This commit is contained in:
Jan Edmund Lazo 2020-12-20 16:55:11 -05:00
parent 1e59134834
commit 7fc59461a8
No known key found for this signature in database
GPG Key ID: 64915E6E9F735B15

View File

@ -424,6 +424,15 @@ func Test_format_align()
\ ], getline(1, '$')) \ ], getline(1, '$'))
enew! enew!
" align text with 'wrapmargin'
50vnew
call setline(1, ['Vim'])
setl textwidth=0
setl wrapmargin=30
right
call assert_equal("\t\t Vim", getline(1))
q!
set tw& set tw&
endfunc endfunc