Skip to content

Commit

Permalink
Merge c7ca5f9 into 4276c71
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Feb 21, 2024
2 parents 4276c71 + c7ca5f9 commit 19b837c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/utilities.lua
Expand Up @@ -617,8 +617,8 @@ utilities.breadcrumbs = function ()
end

function breadcrumbs:contains (needle)
for i, command in ipairs(self) do
if command == needle then return true, #self - i end
for i, frame in ipairs(SILE.traceStack) do
if frame.command == needle then return true, #self - i end
end
return false, -1
end
Expand Down

0 comments on commit 19b837c

Please sign in to comment.