diff options
author | Gregory Anders <greg@gpanders.com> | 2021-08-16 10:46:21 -0600 |
---|---|---|
committer | Gregory Anders <greg@gpanders.com> | 2021-08-17 08:07:41 -0600 |
commit | 8e926a0984f7dc91feca56e6c8a0272a0c275bd8 (patch) | |
tree | 4f16e53cec82d4958ed14ad9b66a44dd6aead315 /src/nvim/generators/gen_options.lua | |
parent | 2cb8db34e3a275dec3dacb10fdc75640f4ec8174 (diff) | |
download | rneovim-8e926a0984f7dc91feca56e6c8a0272a0c275bd8.tar.gz rneovim-8e926a0984f7dc91feca56e6c8a0272a0c275bd8.tar.bz2 rneovim-8e926a0984f7dc91feca56e6c8a0272a0c275bd8.zip |
refactor(options): remove vi/vim default value distinction
Diffstat (limited to 'src/nvim/generators/gen_options.lua')
-rw-r--r-- | src/nvim/generators/gen_options.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/generators/gen_options.lua b/src/nvim/generators/gen_options.lua index 9f91160034..0454c54faf 100644 --- a/src/nvim/generators/gen_options.lua +++ b/src/nvim/generators/gen_options.lua @@ -119,10 +119,10 @@ local get_value = function(v) end local get_defaults = function(d,n) - if (d.vi == nil and d.vim == nil) or (d.vi ~= nil and d.vim ~= nil) then - error("option '"..n.."' should have one and only one default value") + if d == nil then + error("option '"..n.."' should have a default value") end - return get_value(d.vim or d.vi) + return get_value(d) end local defines = {} |