From: Bram Moolenaar Date: Thu, 30 Jan 2020 15:09:25 +0000 (+0100) Subject: patch 8.2.0180: test for wrapmargin fails if terminal is not 80 columns X-Git-Tag: v8.2.0180 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0c3064b39b4cd4f22fe1eab5438fe691d7cc80d1;p=thirdparty%2Fvim.git 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) --- diff --git a/src/testdir/test_textformat.vim b/src/testdir/test_textformat.vim index a49ef5c64c..74d6bfeb44 100644 --- 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 index 8b52a94679..8f34555c74 100644 --- a/src/version.c +++ b/src/version.c @@ -742,6 +742,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 180, /**/ 179, /**/