diff options
Diffstat (limited to 'test/old')
| -rw-r--r-- | test/old/testdir/test_listlbr_utf8.vim | 21 | 
1 files changed, 21 insertions, 0 deletions
| diff --git a/test/old/testdir/test_listlbr_utf8.vim b/test/old/testdir/test_listlbr_utf8.vim index 1bbbd2d2ae..313ff30cc4 100644 --- a/test/old/testdir/test_listlbr_utf8.vim +++ b/test/old/testdir/test_listlbr_utf8.vim @@ -9,6 +9,7 @@ CheckFeature conceal  CheckFeature signs  source view_util.vim +source screendump.vim  func s:screen_lines(lnum, width) abort    return ScreenLines(a:lnum, a:width) @@ -358,4 +359,24 @@ func Test_unprintable_char_on_wrap_column()    call s:close_windows()  endfunc +" Test that Visual selection is drawn correctly when 'linebreak' is set and +" selection ends before multibyte 'showbreak'. +func Test_visual_ends_before_showbreak() +  CheckScreendump + +  let lines =<< trim END +      vim9script +      &wrap = true +      &linebreak = true +      &showbreak = '↪ ' +      ['xxxxx ' .. 'y'->repeat(&columns - 6) .. ' zzzz']->setline(1) +      normal! wvel +  END +  call writefile(lines, 'XvisualEndsBeforeShowbreak', 'D') +  let buf = RunVimInTerminal('-S XvisualEndsBeforeShowbreak', #{rows: 6}) +  call VerifyScreenDump(buf, 'Test_visual_ends_before_showbreak', {}) + +  call StopVimInTerminal(buf) +endfunc +  " vim: shiftwidth=2 sts=2 expandtab | 
