Skip to content

Commit bde14d8

Browse files
committed
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 #3180, closes #3181)
1 parent 907dad7 commit bde14d8

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

src/testdir/test_marks.vim

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,15 +126,12 @@ func Test_marks_cmd_multibyte()
126126
return
127127
endif
128128
new Xone
129-
call setline(1, ['ááááááááááááááááááááááááááááááááááááááááááááááááááááááááááááááááááááááááááááááááá'])
129+
call setline(1, [repeat('á', &columns)])
130130
norm! ma
131131

132132
let a = split(execute('marks a'), "\n")
133133
call assert_equal(2, len(a))
134-
let expected = ' a 1 0 '
135-
while strwidth(expected) < &columns - 1
136-
let expected .= 'á'
137-
endwhile
134+
let expected = ' a 1 0 ' . repeat('á', &columns - 16)
138135
call assert_equal(expected, a[1])
139136

140137
bwipe!

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -789,6 +789,8 @@ static char *(features[]) =
789789

790790
static int included_patches[] =
791791
{ /* Add new patch number below this line */
792+
/**/
793+
175,
792794
/**/
793795
174,
794796
/**/

0 commit comments

Comments
 (0)