mirror of
https://github.com/vim/vim.git
synced 2025-10-12 06:44:06 -04:00
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 #5554)
This commit is contained in:
@@ -425,12 +425,13 @@ func Test_format_align()
|
||||
enew!
|
||||
|
||||
" align text with 'wrapmargin'
|
||||
50vnew
|
||||
call setline(1, ['Vim'])
|
||||
set textwidth=0
|
||||
set wrapmargin=60
|
||||
setl textwidth=0
|
||||
setl wrapmargin=30
|
||||
right
|
||||
call assert_equal("\t\t Vim", getline(1))
|
||||
set wrapmargin&
|
||||
q!
|
||||
|
||||
set tw&
|
||||
endfunc
|
||||
|
@@ -742,6 +742,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
180,
|
||||
/**/
|
||||
179,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user