refactor(options): remove vi/vim default value distinction

This commit is contained in:
Gregory Anders
2021-08-16 10:46:21 -06:00
parent 2cb8db34e3
commit 8e926a0984
2 changed files with 367 additions and 370 deletions

View File

@@ -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