diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2021-08-17 16:46:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-17 16:46:36 +0200 |
commit | 15b736d6e88dba114294b84a21e463b77a0b2857 (patch) | |
tree | 2b41219ca34075f74beaed8591d10e8fe0085176 /src/nvim/generators | |
parent | 35c6aef1c9e384e8f74619c2763bc98f19675837 (diff) | |
parent | 8e926a0984f7dc91feca56e6c8a0272a0c275bd8 (diff) | |
download | rneovim-15b736d6e88dba114294b84a21e463b77a0b2857.tar.gz rneovim-15b736d6e88dba114294b84a21e463b77a0b2857.tar.bz2 rneovim-15b736d6e88dba114294b84a21e463b77a0b2857.zip |
Merge pull request #15396 from gpanders/options-no-vi-vim
refactor(options): remove vi/vim default value distinction
Diffstat (limited to 'src/nvim/generators')
-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 = {} |