1
0
forked from aniani/vim

patch 9.0.1896: "below" virtual text doesn't work with 'rightleft'

Problem:  "below" virtual text doesn't work with 'rightleft'.
Solution: Use column from right border with 'rightleft'.

closes: #13071

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
This commit is contained in:
zeertzjq
2023-09-11 20:01:17 +02:00
committed by Christian Brabandt
parent 4d00b835c4
commit 6b9c202549
4 changed files with 32 additions and 4 deletions

View File

@@ -0,0 +1,6 @@
| +0&#ffffff0@50|e|d|c|b>a| +0#af5f00255&|1| @1
| +0#0000000&@50|5+0#e000e06&|4|3|2|1| +0#af5f00255&@3
| +0#4040ff13&@58|~
| @58|~
| @58|~
| +0#0000000&@41|1|,|1| @10|A|l@1|

View File

@@ -3087,6 +3087,23 @@ func Test_prop_with_multibyte_below()
call StopVimInTerminal(buf)
endfunc
func Test_prop_with_text_below_rightleft()
CheckRunVimInTerminal
CheckFeature rightleft
let lines =<< trim END
setlocal number rightleft
call setline(1, 'abcde')
call prop_type_add('theprop', #{highlight: 'Special'})
call prop_add(1, 0, #{type: 'theprop', text: '12345', text_align: 'below'})
END
call writefile(lines, 'XscriptPropBelowRightleft', 'D')
let buf = RunVimInTerminal('-S XscriptPropBelowRightleft', #{rows: 6, cols: 60})
call VerifyScreenDump(buf, 'Test_prop_below_rightleft_1', {})
call StopVimInTerminal(buf)
endfunc
func Test_prop_with_text_above_empty()
CheckRunVimInTerminal