Merge pull request #15396 from gpanders/options-no-vi-vim

refactor(options): remove vi/vim default value distinction
This commit is contained in:
Björn Linse
2021-08-17 16:46:36 +02:00
committed by GitHub
2 changed files with 367 additions and 370 deletions

View File

@@ -119,10 +119,10 @@ local get_value = function(v)
end end
local get_defaults = function(d,n) local get_defaults = function(d,n)
if (d.vi == nil and d.vim == nil) or (d.vi ~= nil and d.vim ~= nil) then if d == nil then
error("option '"..n.."' should have one and only one default value") error("option '"..n.."' should have a default value")
end end
return get_value(d.vim or d.vi) return get_value(d)
end end
local defines = {} local defines = {}

File diff suppressed because it is too large Load Diff