Skip to content

Commit

Permalink
fix(config): get mode opts from options instead of defaults. Fixes #4
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jun 21, 2023
1 parent de34c83 commit 41fab4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/flash/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ function M.get(...)
local opts = select(i, ...)
if opts then
if opts.mode then
all[#all + 1] = defaults.modes[opts.mode] or {}
all[#all + 1] = options.modes[opts.mode] or {}
opts.mode = nil
end
all[#all + 1] = opts
Expand Down

0 comments on commit 41fab4c

Please sign in to comment.