@@ -23,20 +23,24 @@ STARTTEST
2323: $put =g:line
2424: wincmd p
2525:endfu
26+ :"
2627:let g:test="Test 1: set linebreak"
2728:redraw!
2829:let line=ScreenChar(winwidth(0))
2930:call DoRecordScreen()
31+ :"
3032:let g:test="Test 2: set linebreak + set list"
3133:set linebreak list listchars=
3234:redraw!
3335:let line=ScreenChar(winwidth(0))
3436:call DoRecordScreen()
37+ :"
3538:let g:test ="Test 3: set linebreak nolist"
3639:set nolist linebreak
3740:redraw!
3841:let line=ScreenChar(winwidth(0))
3942:call DoRecordScreen()
43+ :"
4044:let g:test ="Test 4: set linebreak with tab and 1 line as long as screen: should break!"
4145:set nolist linebreak ts=8
4246:let line="1\t".repeat('a', winwidth(0)-2)
@@ -50,13 +54,15 @@ STARTTEST
5054:$put =line
5155:$
5256:norm! zt
57+ :"
5358:let g:test ="Test 5: set linebreak with conceal and set list and tab displayed by different char (line may not be truncated)"
5459:set cpo&vim list linebreak conceallevel=2 concealcursor=nv listchars=tab:ab
5560:syn match ConcealVar contained /_/ conceal
5661:syn match All /.*/ contains=ConcealVar
5762:let line=ScreenChar(winwidth(0))
5863:call DoRecordScreen()
5964:set cpo&vim linebreak
65+ :"
6066:let g:test ="Test 6: set linebreak with visual block mode"
6167:let line="REMOVE: this not"
6268:$put =g:test
@@ -66,31 +72,47 @@ STARTTEST
6672:1/^REMOVE:
67730jf x:$put
6874:set cpo&vim linebreak
75+ :"
6976:let g:test ="Test 7: set linebreak with visual block mode and v_b_A"
7077:$put =g:test
7178Golong line: 40afoobar aTARGET at end
7279:exe "norm! $3B\<C-v>eAx\<Esc>"
7380:set cpo&vim linebreak sbr=
81+ :"
7482:let g:test ="Test 8: set linebreak with visual char mode and changing block"
7583:$put =g:test
7684Go1111-1111-1111-11-1111-1111-11110f-lv3lc2222bgj.
85+ :"
7786:let g:test ="Test 9: using redo after block visual mode"
7887:$put =g:test
7988Go
8089aaa
8190aaa
8291a2k2j~e.
92+ :"
8393:let g:test ="Test 10: using normal commands after block-visual"
8494:$put =g:test
8595:set linebreak
8696Go
8797abcd{ef
8898ghijklm
8999no}pqrs2k0f{c%
100+ :"
90101:let g:test ="Test 11: using block replace mode after wrapping"
91102:$put =g:test
92103:set linebreak wrap
93104Go150aayypk147|jr0
105+ :"
106+ :let g:test ="Test 12: set linebreak list listchars=space:_,tab:>-,tail:-,eol:$"
107+ :set list listchars=space:_,trail:-,tab:>-,eol:$
108+ :$put =g:test
109+ :let line="a aaaaaaaaaaaaaaaaaaaaaa\ta "
110+ :$put =line
111+ :$
112+ :norm! zt
113+ :redraw!
114+ :let line=ScreenChar(winwidth(0))
115+ :call DoRecordScreen()
94116:%w! test.out
95117:qa!
96118ENDTEST
0 commit comments