aboutsummaryrefslogtreecommitdiff
path: root/test/functional/options
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-02-23 01:14:30 +0100
committerGitHub <noreply@github.com>2018-02-23 01:14:30 +0100
commitf3f1970597211c784190c4a1e1990d2386ac76a1 (patch)
treee55c16d1a7d134b091e11df06e36025cc8dd8288 /test/functional/options
parent15670ca1ad657945f69350b663e127f71f81d51c (diff)
parent384a39479a0b70abf9cd6ced0b5f1d53cd817c11 (diff)
downloadrneovim-f3f1970597211c784190c4a1e1990d2386ac76a1.tar.gz
rneovim-f3f1970597211c784190c4a1e1990d2386ac76a1.tar.bz2
rneovim-f3f1970597211c784190c4a1e1990d2386ac76a1.zip
Merge #8035 from justinmk/teto-fillchars-pr
Diffstat (limited to 'test/functional/options')
-rw-r--r--test/functional/options/defaults_spec.lua36
1 files changed, 35 insertions, 1 deletions
diff --git a/test/functional/options/defaults_spec.lua b/test/functional/options/defaults_spec.lua
index 89d4e56d04..9e29baba2d 100644
--- a/test/functional/options/defaults_spec.lua
+++ b/test/functional/options/defaults_spec.lua
@@ -7,6 +7,7 @@ local command = helpers.command
local clear = helpers.clear
local eval = helpers.eval
local eq = helpers.eq
+local insert = helpers.insert
local neq = helpers.neq
local mkdir = helpers.mkdir
local rmdir = helpers.rmdir
@@ -115,7 +116,40 @@ describe('startup defaults', function()
end)
end)
- describe('packpath', function()
+ describe("'fillchars'", function()
+ it('vert/fold flags', function()
+ clear()
+ local screen = Screen.new(50, 5)
+ screen:attach()
+ command('set laststatus=0')
+ insert([[
+ 1
+ 2
+ 3
+ 4]])
+ command('normal! ggjzfj')
+ command('vsp')
+ screen:expect([[
+ 1 │1 |
+ ^+-- 2 lines: 2··········│+-- 2 lines: 2·········|
+ 4 │4 |
+ ~ │~ |
+ |
+ ]])
+
+ -- ambiwidth=double defaults to single-byte fillchars.
+ command('set ambiwidth=double')
+ screen:expect([[
+ 1 |1 |
+ ^+-- 2 lines: 2----------|+-- 2 lines: 2---------|
+ 4 |4 |
+ ~ |~ |
+ |
+ ]])
+ end)
+ end)
+
+ describe("'packpath'", function()
it('defaults to &runtimepath', function()
eq(meths.get_option('runtimepath'), meths.get_option('packpath'))
end)