aboutsummaryrefslogtreecommitdiff
path: root/test/functional/eval/buf_functions_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2021-08-19 06:13:08 -0700
committerGitHub <noreply@github.com>2021-08-19 06:13:08 -0700
commit19a0d90bb3479bb6516be229f6001646329d842f (patch)
tree9c4aa1f2c91d71c10cc42e9e3eed04627cc97482 /test/functional/eval/buf_functions_spec.lua
parent7bff642169438a66557b65d6aba80536eaf570fa (diff)
parentd8ab8cccd0cf5acdf3e7c3ca229cad4160a6fc2e (diff)
downloadrneovim-19a0d90bb3479bb6516be229f6001646329d842f.tar.gz
rneovim-19a0d90bb3479bb6516be229f6001646329d842f.tar.bz2
rneovim-19a0d90bb3479bb6516be229f6001646329d842f.zip
Merge #15410 defaults: 'hidden', 'nojoinspaces'
ref #6289
Diffstat (limited to 'test/functional/eval/buf_functions_spec.lua')
-rw-r--r--test/functional/eval/buf_functions_spec.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/functional/eval/buf_functions_spec.lua b/test/functional/eval/buf_functions_spec.lua
index 06841a4521..e957e5f5af 100644
--- a/test/functional/eval/buf_functions_spec.lua
+++ b/test/functional/eval/buf_functions_spec.lua
@@ -221,9 +221,9 @@ describe('getbufvar() function', function()
eq(0, funcs.getbufvar(1, '&l:autoindent'))
eq(0, funcs.getbufvar(1, '&g:autoindent'))
-- Also works with global-only options
- eq(0, funcs.getbufvar(1, '&hidden'))
- eq(0, funcs.getbufvar(1, '&l:hidden'))
- eq(0, funcs.getbufvar(1, '&g:hidden'))
+ eq(1, funcs.getbufvar(1, '&hidden'))
+ eq(1, funcs.getbufvar(1, '&l:hidden'))
+ eq(1, funcs.getbufvar(1, '&g:hidden'))
-- Also works with window-local options
eq(0, funcs.getbufvar(1, '&number'))
eq(0, funcs.getbufvar(1, '&l:number'))
@@ -279,9 +279,9 @@ describe('setbufvar() function', function()
eq(false, winmeths.get_option(windows[3], 'number'))
eq(false, winmeths.get_option(meths.get_current_win(), 'number'))
- eq(false, meths.get_option('hidden'))
- funcs.setbufvar(1, '&hidden', true)
eq(true, meths.get_option('hidden'))
+ funcs.setbufvar(1, '&hidden', 0)
+ eq(false, meths.get_option('hidden'))
eq(false, bufmeths.get_option(buf1, 'autoindent'))
funcs.setbufvar(1, '&autoindent', true)