aboutsummaryrefslogtreecommitdiff
path: root/test/old/testdir
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-08-29 09:36:55 +0800
committerGitHub <noreply@github.com>2023-08-29 09:36:55 +0800
commit794981d9bed7048fb3ee1ada38fcf1ebdace4c53 (patch)
tree2f32321ef274eb942e98b6b8ff5c4be336519d4b /test/old/testdir
parent7c4d317a660c9d241a817faddc28ec6f36e753ad (diff)
downloadrneovim-794981d9bed7048fb3ee1ada38fcf1ebdace4c53.tar.gz
rneovim-794981d9bed7048fb3ee1ada38fcf1ebdace4c53.tar.bz2
rneovim-794981d9bed7048fb3ee1ada38fcf1ebdace4c53.zip
vim-patch:9.0.1813: linebreak incorrect drawn with breakindent (#24917)
Problem: 'linebreak' is incorrectly drawn after 'breakindent'. Solution: Don't include 'breakindent' size when already after it. closes: vim/vim#12937 closes: vim/vim#12940 https://github.com/vim/vim/commit/1d3e0e8f3110a7807431eae056914ccea57b057b
Diffstat (limited to 'test/old/testdir')
-rw-r--r--test/old/testdir/test_display.vim11
1 files changed, 9 insertions, 2 deletions
diff --git a/test/old/testdir/test_display.vim b/test/old/testdir/test_display.vim
index b08d093a2a..a0bbf34df2 100644
--- a/test/old/testdir/test_display.vim
+++ b/test/old/testdir/test_display.vim
@@ -420,12 +420,19 @@ func Test_display_linebreak_breakat()
new
vert resize 25
let _breakat = &breakat
- setl signcolumn=yes linebreak breakat=) showbreak=+\
+ setl signcolumn=yes linebreak breakat=) showbreak=++
call setline(1, repeat('x', winwidth(0) - 2) .. ')abc')
let lines = ScreenLines([1, 2], 25)
let expected = [
\ ' xxxxxxxxxxxxxxxxxxxxxxx',
- \ ' + )abc '
+ \ ' ++)abc ',
+ \ ]
+ call assert_equal(expected, lines)
+ setl breakindent breakindentopt=shift:2
+ let lines = ScreenLines([1, 2], 25)
+ let expected = [
+ \ ' xxxxxxxxxxxxxxxxxxxxxxx',
+ \ ' ++)abc ',
\ ]
call assert_equal(expected, lines)
%bw!