mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Merge pull request #15396 from gpanders/options-no-vi-vim
refactor(options): remove vi/vim default value distinction
This commit is contained in:
commit
15b736d6e8
@ -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 = {}
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user