Mercurial > vim
diff src/testdir/test_textprop.vim @ 33248:0bb496f81ab2 v9.0.1896
patch 9.0.1896: "below" virtual text doesn't work with 'rightleft'
Commit: https://github.com/vim/vim/commit/6b9c2025496e415856ad70b819de83a48267c582
Author: zeertzjq <zeertzjq@outlook.com>
Date: Mon Sep 11 20:01:17 2023 +0200
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>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 11 Sep 2023 20:15:04 +0200 |
parents | 0d460c34ee39 |
children | 25e5297fbc72 |
line wrap: on
line diff
--- a/src/testdir/test_textprop.vim +++ b/src/testdir/test_textprop.vim @@ -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