mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 17:36:29 +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
|
elseif #o.scope == 1 and o.scope[1] == 'window' then
|
||||||
w(' .var=VAR_WIN')
|
w(' .var=VAR_WIN')
|
||||||
end
|
end
|
||||||
if o.enable_if then
|
|
||||||
w('#endif')
|
|
||||||
end
|
|
||||||
if #o.scope == 1 and o.scope[1] == 'global' then
|
if #o.scope == 1 and o.scope[1] == 'global' then
|
||||||
w(' .indir=PV_NONE')
|
w(' .indir=PV_NONE')
|
||||||
else
|
else
|
||||||
@@ -163,6 +160,12 @@ local dump_option = function(i, o)
|
|||||||
defines['PV_' .. varname:sub(3):upper()] = pv_name
|
defines['PV_' .. varname:sub(3):upper()] = pv_name
|
||||||
w(' .indir=' .. pv_name)
|
w(' .indir=' .. pv_name)
|
||||||
end
|
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 then
|
||||||
if o.defaults.condition then
|
if o.defaults.condition then
|
||||||
w(get_cond(o.defaults.condition))
|
w(get_cond(o.defaults.condition))
|
||||||
|
Reference in New Issue
Block a user