diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2018-01-15 22:42:52 +0100 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2018-01-15 22:42:52 +0100 |
| commit | 726197d8907891eda99299a2920b0d1d98148a3c (patch) | |
| tree | 4345e1beaa8e9f5856bf1278679dfb8b22da044f /src/nvim/testdir/test_listlbr_utf8.vim | |
| parent | f09a30d5b0abb8f12d2e6a10cebaf87ca11aa135 (diff) | |
| parent | b9f3805447f9e0ff277aa655dfb9513f41db5ce6 (diff) | |
| download | rneovim-726197d8907891eda99299a2920b0d1d98148a3c.tar.gz rneovim-726197d8907891eda99299a2920b0d1d98148a3c.tar.bz2 rneovim-726197d8907891eda99299a2920b0d1d98148a3c.zip | |
Merge #7850 'vim patches'
Diffstat (limited to 'src/nvim/testdir/test_listlbr_utf8.vim')
| -rw-r--r-- | src/nvim/testdir/test_listlbr_utf8.vim | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_listlbr_utf8.vim b/src/nvim/testdir/test_listlbr_utf8.vim index 980d67d49d..56a4cc9b31 100644 --- a/src/nvim/testdir/test_listlbr_utf8.vim +++ b/src/nvim/testdir/test_listlbr_utf8.vim @@ -194,6 +194,33 @@ func Test_multibyte_sign_and_colorcolumn() call s:close_windows() endfunc +func Test_illegal_byte_and_breakat() + call s:test_windows("setl sbr= brk+=<") + vert resize 18 + call setline(1, repeat("\x80", 6)) + redraw! + let lines = s:screen_lines([1, 2], winwidth(0)) + let expect = [ +\ "<80><80><80><80><8", +\ "0><80> ", +\ ] + call s:compare_lines(expect, lines) + call s:close_windows('setl brk&vim') +endfunc + +func Test_multibyte_wrap_and_breakat() + call s:test_windows("setl sbr= brk+=>") + call setline(1, repeat('a', 17) . repeat('あ', 2)) + redraw! + let lines = s:screen_lines([1, 2], winwidth(0)) + let expect = [ +\ "aaaaaaaaaaaaaaaaaあ>", +\ "あ ", +\ ] + call s:compare_lines(expect, lines) + call s:close_windows('setl brk&vim') +endfunc + func Test_chinese_char_on_wrap_column() call s:test_windows("setl nolbr wrap sbr=") syntax off |