mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-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 vim/vim#3180, closes vim/vim#3181)
bde14d8e24
This commit is contained in:
parent
64e74dc784
commit
315a8d2217
@ -126,15 +126,12 @@ func Test_marks_cmd_multibyte()
|
|||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
new Xone
|
new Xone
|
||||||
call setline(1, ['ááááááááááááááááááááááááááááááááááááááááááááááááááááááááááááááááááááááááááááááááá'])
|
call setline(1, [repeat('á', &columns)])
|
||||||
norm! ma
|
norm! ma
|
||||||
|
|
||||||
let a = split(execute('marks a'), "\n")
|
let a = split(execute('marks a'), "\n")
|
||||||
call assert_equal(2, len(a))
|
call assert_equal(2, len(a))
|
||||||
let expected = ' a 1 0 '
|
let expected = ' a 1 0 ' . repeat('á', &columns - 16)
|
||||||
while strwidth(expected) < &columns - 1
|
|
||||||
let expected .= 'á'
|
|
||||||
endwhile
|
|
||||||
call assert_equal(expected, a[1])
|
call assert_equal(expected, a[1])
|
||||||
|
|
||||||
bwipe!
|
bwipe!
|
||||||
|
Loading…
Reference in New Issue
Block a user