@@ -2908,6 +2908,29 @@ func Test_prop_above_with_indent()
29082908 call prop_type_delete (' indented' )
29092909endfunc
29102910
2911+ func Test_prop_below_split_line ()
2912+ CheckRunVimInTerminal
2913+
2914+ let lines = << trim END
2915+ vim9script
2916+ setline (1 , [' one one one' , ' two two two' , ' three three three' ])
2917+ prop_type_add (' test' , {highlight : ' ModeMsg' })
2918+ prop_add (2 , 0 , {
2919+ text: ' └─ Virtual text below the 2nd line' ,
2920+ type : ' test' ,
2921+ text_align: ' below' ,
2922+ text_padding_left: 3
2923+ })
2924+ END
2925+ call writefile (lines , ' XscriptPropBelowSpitLine' , ' D' )
2926+ let buf = RunVimInTerminal (' -S XscriptPropBelowSpitLine' , #{rows: 8 })
2927+ call term_sendkeys (buf , " 2GA\<CR> xx" )
2928+ call VerifyScreenDump (buf , ' Test_prop_below_split_line_1' , {})
2929+
2930+ call term_sendkeys (buf , " \<Esc> " )
2931+ call StopVimInTerminal (buf )
2932+ endfunc
2933+
29112934func Test_props_with_text_override ()
29122935 CheckRunVimInTerminal
29132936
@@ -2920,7 +2943,7 @@ func Test_props_with_text_override()
29202943 hi CursorLine cterm= underline ctermbg= lightgrey
29212944 set cursorline
29222945 END
2923- call writefile (lines , ' XscriptPropsOverride' )
2946+ call writefile (lines , ' XscriptPropsOverride' , ' D ' )
29242947 let buf = RunVimInTerminal (' -S XscriptPropsOverride' , #{rows: 6 , cols: 60 })
29252948 call VerifyScreenDump (buf , ' Test_prop_with_text_override_1' , {})
29262949
@@ -2929,7 +2952,6 @@ func Test_props_with_text_override()
29292952 call VerifyScreenDump (buf , ' Test_prop_with_text_override_2' , {})
29302953
29312954 call StopVimInTerminal (buf )
2932- call delete (' XscriptPropsOverride' )
29332955endfunc
29342956
29352957func Test_props_with_text_CursorMoved ()
0 commit comments