patch 9.0.0944: 'cursorline' causes virtual text highlight to continue
Problem: 'cursorline' causes virtual text highlight to continue.
Solution: Save and restore line_attr. (closes #11588)
diff --git a/src/testdir/test_textprop.vim b/src/testdir/test_textprop.vim
index c2ee233..3f24463 100644
--- a/src/testdir/test_textprop.vim
+++ b/src/testdir/test_textprop.vim
@@ -2690,12 +2690,14 @@
prop_add(1, 0, {
type: 'test',
text: 'the quick brown fox jumps over the lazy dog',
- text_align: 'after'
+ text_align: 'after',
})
+ prop_type_add('another', {highlight: 'DiffChange'})
prop_add(1, 0, {
- type: 'test',
+ type: 'another',
text: 'the quick brown fox jumps over the lazy dog',
- text_align: 'below'
+ text_align: 'below',
+ text_padding_left: 4,
})
normal G$
END
@@ -2706,6 +2708,9 @@
call term_sendkeys(buf, ":set number\<CR>")
call VerifyScreenDump(buf, 'Test_prop_with_text_after_below_trunc_2', {})
+ call term_sendkeys(buf, ":set cursorline\<CR>gg")
+ call VerifyScreenDump(buf, 'Test_prop_with_text_after_below_trunc_3', {})
+
call StopVimInTerminal(buf)
endfunc