changeset 19243:e053bf71b998 v8.2.0180

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 <Bram@vim.org> 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)
author Bram Moolenaar <Bram@vim.org>
date Thu, 30 Jan 2020 16:15:04 +0100
parents f292c70e6118
children bb09b0f937ad
files src/testdir/test_textformat.vim src/version.c
diffstat 2 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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,