Skip to content

Commit

Permalink
support crow ii functions with zero arguments (#1807)
Browse files Browse the repository at this point in the history
  • Loading branch information
midouest authored Jan 12, 2025
1 parent e8e210a commit b6a038e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/core/crow.lua
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,8 @@ local crowSub = {
end,

__call = function(self, ...)
local qt = quote(...)
local nargs = select("#", ...)
local qt = nargs > 0 and quote(...) or ''
norns.crow.send(self.str .. '(' .. qt .. ')')
end,
}
Expand Down

0 comments on commit b6a038e

Please sign in to comment.