0
0
mirror of https://github.com/vim/vim.git synced 2025-07-04 23:07:33 -04:00

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)
This commit is contained in:
Bram Moolenaar 2018-07-10 15:22:32 +02:00
parent 907dad72ef
commit bde14d8e24
2 changed files with 4 additions and 5 deletions

View 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!

View File

@ -789,6 +789,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
175,
/**/
174,
/**/