]> granicus.if.org Git - vim/commitdiff
patch 8.0.0443: terminal width is set to 80 in test3 v8.0.0443
authorBram Moolenaar <Bram@vim.org>
Sat, 11 Mar 2017 17:42:56 +0000 (18:42 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 11 Mar 2017 17:42:56 +0000 (18:42 +0100)
Problem:    Terminal width is set to 80 in test3.
Solution:   Instead of setting 'columns' set 'wrapmargin' depending on
            'columns.

src/testdir/test3.in
src/version.c

index 9e66436e7dd4f24badfc4e7fa8808e5b57a3cb01..c78a66ec131a1c18622fcd0590f835d71b47ad69 100644 (file)
@@ -970,7 +970,8 @@ break;
 /* end of AUTO */
 
 STARTTEST
-:set tw=0 wm=60 columns=80 noai fo=croq
+:set tw=0 noai fo=croq
+:let &wm = &columns - 20
 /serious/e
 a about life, the universe, and the rest\e
 ENDTEST
index 0f7b4e499f70015f9e263b48ec30b5343b6213b1..5a58f4317c36ac482d86703dd43b595e15d97c21 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    443,
 /**/
     442,
 /**/