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