]> granicus.if.org Git - vim/commitdiff
patch 8.1.0175: marks test fails in very wide window v8.1.0175
authorBram Moolenaar <Bram@vim.org>
Tue, 10 Jul 2018 13:22:32 +0000 (15:22 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 10 Jul 2018 13:22:32 +0000 (15:22 +0200)
Problem:    Marks test fails in very wide window. (Vladimir Lomov)
Solution:   Extend the text to match 'columns'. (closes #3180, closes #3181)

src/testdir/test_marks.vim
src/version.c

index b05246e0646fde425e57d59a9a84483ea22769af..8858cd22b803f0f82a778cf332e46f22fc68e05a 100644 (file)
@@ -126,15 +126,12 @@ func Test_marks_cmd_multibyte()
     return
   endif
   new Xone
-  call setline(1, ['ááááááááááááááááááááááááááááááááááááááááááááááááááááááááááááááááááááááááááááááááá'])
+  call setline(1, [repeat('á', &columns)])
   norm! ma
 
   let a = split(execute('marks a'), "\n")
   call assert_equal(2, len(a))
-  let expected = ' a      1    0 '
-  while strwidth(expected) < &columns - 1
-    let expected .= 'á'
-  endwhile
+  let expected = ' a      1    0 ' . repeat('á', &columns - 16)
   call assert_equal(expected, a[1])
 
   bwipe!
index 6b422e6703bb2ee8a0cde17e26839baa7a4f3acf..58751e3215ebaf2bb0c5cff24e613080ca18aedc 100644 (file)
@@ -789,6 +789,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    175,
 /**/
     174,
 /**/