# HG changeset patch # User Bram Moolenaar # Date 1580397304 -3600 # Node ID e053bf71b998bb8e1a0d52d6a82aa2bccf3736d1 # Parent f292c70e611802d24d05d463a3c3b0d5a4182dd2 patch 8.2.0180: test for wrapmargin fails if terminal is not 80 columns Commit: https://github.com/vim/vim/commit/0c3064b39b4cd4f22fe1eab5438fe691d7cc80d1 Author: Bram Moolenaar Date: Thu Jan 30 16:09:25 2020 +0100 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 https://github.com/vim/vim/issues/5554) diff --git a/src/testdir/test_textformat.vim b/src/testdir/test_textformat.vim --- a/src/testdir/test_textformat.vim +++ b/src/testdir/test_textformat.vim @@ -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 diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -743,6 +743,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 180, +/**/ 179, /**/ 178,