diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-09-27 10:48:14 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-27 10:48:14 +0800 |
commit | dfa8b582a64aa22d3c57261bfcdc970b26cb58f3 (patch) | |
tree | fcc24f25ee072a5bb08c122ba3b9c92c3c260532 /test | |
parent | de9348978999aa78f8351b5f55930bb109e742f7 (diff) | |
download | rneovim-dfa8b582a64aa22d3c57261bfcdc970b26cb58f3.tar.gz rneovim-dfa8b582a64aa22d3c57261bfcdc970b26cb58f3.tar.bz2 rneovim-dfa8b582a64aa22d3c57261bfcdc970b26cb58f3.zip |
fix(extmarks): draw TAB in virt_text properly with 'rl' (#25381)
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/ui/decorations_spec.lua | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/test/functional/ui/decorations_spec.lua b/test/functional/ui/decorations_spec.lua index f378c50792..f535bdd1a6 100644 --- a/test/functional/ui/decorations_spec.lua +++ b/test/functional/ui/decorations_spec.lua @@ -1963,23 +1963,20 @@ describe('extmark decorations', function() it('works with double width char and rightleft', function() screen:try_resize(50, 3) - insert('abcdefghij口klmnop') + insert('abcdefghij口klmnopqrstu口vwx口yz') feed('0') command('set rightleft') screen:expect{grid=[[ - ponmlk口jihgfedcb^a| + zy口xwv口utsrqponmlk口jihgfedcb^a| {1: ~}| | ]]} meths.buf_set_extmark(0, ns, 0, 2, { virt_text = {{'overlayed', 'Underlined'}}, virt_text_pos = 'overlay' }) + meths.buf_set_extmark(0, ns, 0, 14, { virt_text = {{'古', 'Underlined'}}, virt_text_pos = 'overlay' }) + meths.buf_set_extmark(0, ns, 0, 20, { virt_text = {{'\t', 'Underlined'}}, virt_text_pos = 'overlay' }) + meths.buf_set_extmark(0, ns, 0, 29, { virt_text = {{'古', 'Underlined'}}, virt_text_pos = 'overlay' }) screen:expect{grid=[[ - ponmlk {28:deyalrevo}b^a| - {1: ~}| - | - ]]} - meths.buf_set_extmark(0, ns, 0, 15, { virt_text = {{'古', 'Underlined'}}, virt_text_pos = 'overlay' }) - screen:expect{grid=[[ - po{28:古}lk {28:deyalrevo}b^a| + zy {28:古}wv {28: }qpon{28:古}k {28:deyalrevo}b^a| {1: ~}| | ]]} |