summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_textprop.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-12-01 18:38:02 +0000
committerBram Moolenaar <Bram@vim.org>2022-12-01 18:38:02 +0000
commit45e4eead2aaf9d883bcf19db779be47ffb4fa44a (patch)
tree17f460c706821d19d21ab3502cfb3dcaa1d14c90 /src/testdir/test_textprop.vim
parentc3f1881aedae5e9a584bacf5a06944fba6357259 (diff)
patch 9.0.0982: 'cursorline' not drawn before virtual text belowv9.0.0982
Problem: 'cursorline' not drawn before virtual text below. Solution: Add the 'cursorline' attribute to the empty space. (closes #11647)
Diffstat (limited to 'src/testdir/test_textprop.vim')
-rw-r--r--src/testdir/test_textprop.vim23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/testdir/test_textprop.vim b/src/testdir/test_textprop.vim
index 480c9fb752..a84709142b 100644
--- a/src/testdir/test_textprop.vim
+++ b/src/testdir/test_textprop.vim
@@ -2918,6 +2918,29 @@ func Test_props_with_text_after_nowrap()
call StopVimInTerminal(buf)
endfunc
+func Test_prop_with_text_below_cul()
+ CheckRunVimInTerminal
+
+ let lines =<< trim END
+ vim9script
+
+ setline(1, ['some text', 'last line'])
+ set cursorline nowrap
+ prop_type_add('test', {highlight: 'DiffChange'})
+ prop_add(1, 0, {
+ type: 'test',
+ text: 'The quick brown fox jumps over the lazy dog',
+ text_align: 'below',
+ text_padding_left: 4,
+ })
+ END
+ call writefile(lines, 'XscriptPropsBelowCurline', 'D')
+ let buf = RunVimInTerminal('-S XscriptPropsBelowCurline', #{rows: 6, cols: 60})
+ call VerifyScreenDump(buf, 'Test_prop_with_text_below_cul_1', {})
+
+ call StopVimInTerminal(buf)
+endfunc
+
func Test_props_with_text_below_nowrap()
CheckRunVimInTerminal