diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-08-08 14:59:07 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-08-08 20:03:40 +0800 |
commit | 603f7bd253e6dd3693e2957f0beb3223945fe705 (patch) | |
tree | 3b1bcf6bbb4d284c385c5afb412869fc993257d0 /test/functional/options/defaults_spec.lua | |
parent | 9fedb6fd783b9ac48239bc7574779118eec3729a (diff) | |
download | rneovim-603f7bd253e6dd3693e2957f0beb3223945fe705.tar.gz rneovim-603f7bd253e6dd3693e2957f0beb3223945fe705.tar.bz2 rneovim-603f7bd253e6dd3693e2957f0beb3223945fe705.zip |
fix(fillchars): change fallback after setcellwidths()
Diffstat (limited to 'test/functional/options/defaults_spec.lua')
-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) |