diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-09-13 20:12:19 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-09-13 20:13:02 -0400 |
commit | 315a8d22172de9bcf45bb86a0bf31640c626fcce (patch) | |
tree | 65acbe67531cd0f340d350a313ee39cfb7e7bc4d | |
parent | 64e74dc784b873767a5f2a764811c4ef72f81319 (diff) | |
download | rneovim-315a8d22172de9bcf45bb86a0bf31640c626fcce.tar.gz rneovim-315a8d22172de9bcf45bb86a0bf31640c626fcce.tar.bz2 rneovim-315a8d22172de9bcf45bb86a0bf31640c626fcce.zip |
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)
https://github.com/vim/vim/commit/bde14d8e24f6b8ca409290733dbf11cb6fee5751
-rw-r--r-- | src/nvim/testdir/test_marks.vim | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/nvim/testdir/test_marks.vim b/src/nvim/testdir/test_marks.vim index b05246e064..8858cd22b8 100644 --- a/src/nvim/testdir/test_marks.vim +++ b/src/nvim/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! |