]> granicus.if.org Git - vim/commitdiff
patch 8.2.0180: test for wrapmargin fails if terminal is not 80 columns v8.2.0180
authorBram Moolenaar <Bram@vim.org>
Thu, 30 Jan 2020 15:09:25 +0000 (16:09 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 30 Jan 2020 15:09:25 +0000 (16:09 +0100)
Problem:    Test for wrapmargin fails if terminal is not 80 columns.
Solution:   Vertical split the window. (Ken Takata, closes #5554)

src/testdir/test_textformat.vim
src/version.c

index a49ef5c64ce133863eb5fb5a9152941a7068ecc3..74d6bfeb4474485f0fda28f171bd36259ae9cd9a 100644 (file)
@@ -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
index 8b52a9467951a23e8a99856ab4fa5d8e13fb38cc..8f34555c7441b82d8a5162708faf693083571f74 100644 (file)
@@ -742,6 +742,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    180,
 /**/
     179,
 /**/