diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-08-08 21:20:27 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-08 21:20:27 +0800 |
commit | d36c2fa7137d9e388e1a5d99f42cb11394bc8b77 (patch) | |
tree | 3b1bcf6bbb4d284c385c5afb412869fc993257d0 /test | |
parent | a46e6afb8b95229478c5c1fb75e3f1c55991def0 (diff) | |
parent | 603f7bd253e6dd3693e2957f0beb3223945fe705 (diff) | |
download | rneovim-d36c2fa7137d9e388e1a5d99f42cb11394bc8b77.tar.gz rneovim-d36c2fa7137d9e388e1a5d99f42cb11394bc8b77.tar.bz2 rneovim-d36c2fa7137d9e388e1a5d99f42cb11394bc8b77.zip |
Merge pull request #19674 from zeertzjq/vim-8.2.1535
vim-patch:8.2.{1535,1537,3545}: setcellwidths()
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/options/defaults_spec.lua | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/test/functional/options/defaults_spec.lua b/test/functional/options/defaults_spec.lua index 9244ca0974..4e2f2ab63e 100644 --- a/test/functional/options/defaults_spec.lua +++ b/test/functional/options/defaults_spec.lua @@ -161,6 +161,36 @@ describe('startup defaults', function() ~ |~ | | ]]) + + -- change "vert" character to single-cell + funcs.setcellwidths({{0x2502, 0x2502, 1}}) + screen:expect([[ + 1 │1 | + ^+-- 2 lines: 2----------│+-- 2 lines: 2---------| + 4 │4 | + ~ │~ | + | + ]]) + + -- change "vert" character to double-cell + funcs.setcellwidths({{0x2502, 0x2502, 2}}) + screen:expect([[ + 1 |1 | + ^+-- 2 lines: 2----------|+-- 2 lines: 2---------| + 4 |4 | + ~ |~ | + | + ]]) + + -- "vert" character should still default to single-byte fillchars because of setcellwidths(). + command('set ambiwidth=single') + screen:expect([[ + 1 |1 | + ^+-- 2 lines: 2··········|+-- 2 lines: 2·········| + 4 |4 | + ~ |~ | + | + ]]) end) end) |