Skip to content

Commit

Permalink
fix: always use the first custom setting (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
liubianshi authored Aug 15, 2024
1 parent 1924e20 commit e25bc10
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/img-clip/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,10 @@ end
local function get_val(val, args)
if val == nil then
return nil
elseif type(val) == "function" then
return val(args or {})
else
return type(val) == "function" and val(args or {}) or val
return val
end
end

Expand Down

0 comments on commit e25bc10

Please sign in to comment.