mirror of
https://github.com/neovim/neovim.git
synced 2025-10-04 17:06:30 +00:00
options: add fallback value to .indir member (#13150)
Required for patch v8.1.1769.
This commit is contained in:
@@ -141,9 +141,6 @@ local dump_option = function(i, o)
|
||||
elseif #o.scope == 1 and o.scope[1] == 'window' then
|
||||
w(' .var=VAR_WIN')
|
||||
end
|
||||
if o.enable_if then
|
||||
w('#endif')
|
||||
end
|
||||
if #o.scope == 1 and o.scope[1] == 'global' then
|
||||
w(' .indir=PV_NONE')
|
||||
else
|
||||
@@ -163,6 +160,12 @@ local dump_option = function(i, o)
|
||||
defines['PV_' .. varname:sub(3):upper()] = pv_name
|
||||
w(' .indir=' .. pv_name)
|
||||
end
|
||||
if o.enable_if then
|
||||
w('#else')
|
||||
w(' .var=NULL')
|
||||
w(' .indir=PV_NONE')
|
||||
w('#endif')
|
||||
end
|
||||
if o.defaults then
|
||||
if o.defaults.condition then
|
||||
w(get_cond(o.defaults.condition))
|
||||
|
Reference in New Issue
Block a user