mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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:
parent
1e59134834
commit
7fc59461a8
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user