aboutsummaryrefslogtreecommitdiff
path: root/test/functional/options
diff options
context:
space:
mode:
authorJosh Rahm <rahm@google.com>2022-08-19 12:26:08 -0600
committerJosh Rahm <rahm@google.com>2022-08-19 13:06:41 -0600
commita7237662f96933efe29eed8212464571e3778cd0 (patch)
tree27930202726b4251437c8cfa53069f65b4db90dc /test/functional/options
parent02292344929069ea63c0bb872cc22d552d86b67f (diff)
parentb2f979b30beac67906b2dd717fcb6a34f46f5e54 (diff)
downloadrneovim-tmp.tar.gz
rneovim-tmp.tar.bz2
rneovim-tmp.zip
Merge branch 'master' of https://github.com/neovim/neovim into rahmtmp
Diffstat (limited to 'test/functional/options')
-rw-r--r--test/functional/options/defaults_spec.lua30
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)