Skip to content

Commit

Permalink
Make jog more forgiving
Browse files Browse the repository at this point in the history
This should be reversed at some point.
  • Loading branch information
tarleb committed Oct 15, 2024
1 parent d7651cc commit d6c2a86
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/resources/filters/modules/jog.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ local function run_filter_function (fn, element, context)
return element
end

local result, continue = fn(element, context)
if result == nil then
local ok, result, continue = pcall(fn, element, context)
if ok == false then
return element
elseif result == nil then
return element, continue
else
return result, continue
Expand Down

0 comments on commit d6c2a86

Please sign in to comment.