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
commit 15b736d6e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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