changeset 14319:f7e80dbb4f00 v8.1.0175

patch 8.1.0175: marks test fails in very wide window commit https://github.com/vim/vim/commit/bde14d8e24f6b8ca409290733dbf11cb6fee5751 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jul 10 15:22:32 2018 +0200 patch 8.1.0175: marks test fails in very wide window Problem: Marks test fails in very wide window. (Vladimir Lomov) Solution: Extend the text to match 'columns'. (closes https://github.com/vim/vim/issues/3180, closes https://github.com/vim/vim/issues/3181)
author Christian Brabandt <cb@256bit.org>
date Tue, 10 Jul 2018 15:30:07 +0200
parents 465c0616f51b
children a486a54895ea
files src/testdir/test_marks.vim src/version.c
diffstat 2 files changed, 4 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_marks.vim
+++ b/src/testdir/test_marks.vim
@@ -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!
--- a/src/version.c
+++ b/src/version.c
@@ -790,6 +790,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    175,
+/**/
     174,
 /**/
     173,