Skip to content

Commit

Permalink
fix: option filetype maps when default value is false (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevearc committed Oct 6, 2022
1 parent 6f1b28b commit e0215f9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lua/aerial/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,11 @@ local function create_filetype_opt_getter(option, default)
return option[ft]
end
end
return option["_"] and option["_"] or default
if option["_"] ~= nil then
return option["_"]
else
return default
end
end
end
end
Expand Down

0 comments on commit e0215f9

Please sign in to comment.