diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-10-08 23:32:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-08 23:32:24 +0200 |
commit | 61f1e992ce984371a8d570c4dbb34ff759f5751a (patch) | |
tree | e57f0cc2a0138540271890c421e6c451e04a9f81 /test/functional/ui/multibyte_spec.lua | |
parent | e5855697e90e379128a018a8d88cf5ec008b0623 (diff) | |
parent | ddef39299f357d3131644647379e88a69749bf40 (diff) | |
download | rneovim-61f1e992ce984371a8d570c4dbb34ff759f5751a.tar.gz rneovim-61f1e992ce984371a8d570c4dbb34ff759f5751a.tar.bz2 rneovim-61f1e992ce984371a8d570c4dbb34ff759f5751a.zip |
Merge pull request #25503 from bfredl/unishape
refactor(grid): do arabic shaping in one place
Diffstat (limited to 'test/functional/ui/multibyte_spec.lua')
-rw-r--r-- | test/functional/ui/multibyte_spec.lua | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/test/functional/ui/multibyte_spec.lua b/test/functional/ui/multibyte_spec.lua index 417c7b797c..077dd1a779 100644 --- a/test/functional/ui/multibyte_spec.lua +++ b/test/functional/ui/multibyte_spec.lua @@ -177,6 +177,57 @@ describe("multibyte rendering", function() | ]], reset=true} end) + + it('works with arabic input and arabicshape', function() + command('set arabic') + + command('set noarabicshape') + feed('isghl!<esc>') + screen:expect{grid=[[ + ^!مالس| + {1: ~}| + {1: ~}| + {1: ~}| + {1: ~}| + | + ]]} + + command('set arabicshape') + screen:expect{grid=[[ + ^!ﻡﻼﺳ| + {1: ~}| + {1: ~}| + {1: ~}| + {1: ~}| + | + ]]} + end) + + it('works with arabic input and arabicshape and norightleft', function() + command('set arabic norightleft') + + command('set noarabicshape') + feed('isghl!<esc>') + screen:expect{grid=[[ + سلام^! | + {1:~ }| + {1:~ }| + {1:~ }| + {1:~ }| + | + ]]} + + command('set arabicshape') + screen:expect{grid=[[ + ﺱﻼﻣ^! | + {1:~ }| + {1:~ }| + {1:~ }| + {1:~ }| + | + ]]} + + end) end) describe('multibyte rendering: statusline', function() |