comparison src/testdir/test_diffmode.vim @ 34340:29a814bbb630 v9.1.0103

patch 9.1.0103: 'breakindentopt' "min" not correct with 'signcolumn' Commit: https://github.com/vim/vim/commit/f0a9d65e0a1d693cdfa964aa72de5b93b4cacdea Author: zeertzjq <zeertzjq@outlook.com> Date: Mon Feb 12 22:53:20 2024 +0100 patch 9.1.0103: 'breakindentopt' "min" not correct with 'signcolumn' Problem: 'breakindentopt' "min" works incorrectly with 'signcolumn'. Solution: Use win_col_off() and win_col_off2(). (zeertzjq) closes: #14014 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Mon, 12 Feb 2024 23:00:05 +0100
parents 7ccaadd7cf0b
children 835fc06c4547
comparison
equal deleted inserted replaced
34339:5ba16a528a88 34340:29a814bbb630
1131 1131
1132 func Test_diff_breakindent_after_filler() 1132 func Test_diff_breakindent_after_filler()
1133 CheckScreendump 1133 CheckScreendump
1134 1134
1135 let lines =<< trim END 1135 let lines =<< trim END
1136 set laststatus=0 diffopt+=followwrap breakindent 1136 set laststatus=0 diffopt+=followwrap breakindent breakindentopt=min:0
1137 call setline(1, ['a', ' ' .. repeat('c', 50)]) 1137 call setline(1, ['a', ' ' .. repeat('c', 50)])
1138 vnew 1138 vnew
1139 call setline(1, ['a', 'b', ' ' .. repeat('c', 50)]) 1139 call setline(1, ['a', 'b', ' ' .. repeat('c', 50)])
1140 windo diffthis 1140 windo diffthis
1141 norm! G$ 1141 norm! G$