aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-12-23 13:56:32 +0800
committerGitHub <noreply@github.com>2022-12-23 13:56:32 +0800
commit30f606fc602f835fbed869140d3d658e24129c22 (patch)
tree5af7b1091fa420b81d753e3d9f7a02f78afeb24c /test
parent98daaa798e018071876d026a60840991be8d8069 (diff)
downloadrneovim-30f606fc602f835fbed869140d3d658e24129c22.tar.gz
rneovim-30f606fc602f835fbed869140d3d658e24129c22.tar.bz2
rneovim-30f606fc602f835fbed869140d3d658e24129c22.zip
fix(options): restore exists() behavior for options (#21510)
Duplicating get_option_value() logic for an obscure future refactor isn't really worthwhile, and findoption() isn't used anywhere else outside the options code.
Diffstat (limited to 'test')
-rw-r--r--test/functional/ui/highlight_spec.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/functional/ui/highlight_spec.lua b/test/functional/ui/highlight_spec.lua
index 8dd1091353..288c2a214f 100644
--- a/test/functional/ui/highlight_spec.lua
+++ b/test/functional/ui/highlight_spec.lua
@@ -6,6 +6,7 @@ local command, exec = helpers.command, helpers.exec
local eval = helpers.eval
local feed_command, eq = helpers.feed_command, helpers.eq
local curbufmeths = helpers.curbufmeths
+local funcs = helpers.funcs
local meths = helpers.meths
describe('colorscheme compatibility', function()
@@ -13,7 +14,9 @@ describe('colorscheme compatibility', function()
clear()
end)
- it('t_Co is set to 256 by default', function()
+ it('&t_Co exists and is set to 256 by default', function()
+ eq(1, funcs.exists('&t_Co'))
+ eq(1, funcs.exists('+t_Co'))
eq('256', eval('&t_Co'))
end)
end)