vim-patch:8.2.1058: multiline conceal causes display errors

Problem:    Multiline conceal causes display errors.
Solution:   Do not allow conceal cross over EOL. (closes vim/vim#6326, closes vim/vim#4854,
            closes vim/vim#6302)
fc838d6cb0

Port test_conceal.vim but skip tests that require screendumps.
This commit is contained in:
Jan Edmund Lazo
2021-02-13 15:51:37 -05:00
parent cdace43b6c
commit 34291eba80
3 changed files with 300 additions and 0 deletions

View File

@@ -1007,6 +1007,18 @@ func Test_diff_rnu()
call delete('Xtest_diff_rnu')
endfunc
func Test_diff_multilineconceal()
new
diffthis
new
call matchadd('Conceal', 'a\nb', 9, -1, {'conceal': 'Y'})
set cole=2 cocu=n
call setline(1, ["a", "b"])
diffthis
redraw
endfunc
func Test_diff_and_scroll()
" this was causing an ml_get error
set ls=2