diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-01-26 07:00:25 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2024-01-26 07:06:43 +0800 |
commit | 52d8741c78096a7606bf4f689d7e740372633dc6 (patch) | |
tree | bb1bbecbad0ed03133dfbc041218626cacc1bac5 /test | |
parent | 83b51b36aa46d4bb25fada6eda22102e0aa5ef19 (diff) | |
download | rneovim-52d8741c78096a7606bf4f689d7e740372633dc6.tar.gz rneovim-52d8741c78096a7606bf4f689d7e740372633dc6.tar.bz2 rneovim-52d8741c78096a7606bf4f689d7e740372633dc6.zip |
vim-patch:9.1.0054: 'linebreak' may still apply to leading whitespace
Problem: 'linebreak' may still apply to leading whitespace
(VanaIgr)
Solution: Compare pointers instead of virtual columns.
(zeertzjq)
related: #27180
closes: vim/vim#13915
https://github.com/vim/vim/commit/703f9bc943a29d947869b5cb0370be2ac42d5ac9
Co-authored-by: VanaIgr <vanaigranov@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/old/testdir/test_listlbr.vim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/old/testdir/test_listlbr.vim b/test/old/testdir/test_listlbr.vim index 6dea94fbf1..e9bf9f3ff2 100644 --- a/test/old/testdir/test_listlbr.vim +++ b/test/old/testdir/test_listlbr.vim @@ -375,13 +375,13 @@ endfunc func Test_linebreak_no_break_after_whitespace_only() call s:test_windows('setl ts=4 linebreak wrap') - call setline(1, "\tabcdefghijklmnopqrstuvwxyz" .. + call setline(1, "\t abcdefghijklmnopqrstuvwxyz" .. \ "abcdefghijklmnopqrstuvwxyz") let lines = s:screen_lines([1, 4], winwidth(0)) let expect = [ -\ " abcdefghijklmnop", -\ "qrstuvwxyzabcdefghij", -\ "klmnopqrstuvwxyz ", +\ " abcdefghijklmn", +\ "opqrstuvwxyzabcdefgh", +\ "ijklmnopqrstuvwxyz ", \ "~ ", \ ] call s:compare_lines(expect, lines) |