Skip to content

Commit

Permalink
options: add fallback value to .indir member (neovim#13150)
Browse files Browse the repository at this point in the history
Required for patch v8.1.1769.
  • Loading branch information
janlazo committed Oct 25, 2020
1 parent e37651d commit b59b8dd
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/nvim/generators/gen_options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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))
Expand Down

0 comments on commit b59b8dd

Please sign in to comment.