Skip to content

Commit

Permalink
fix(debug): Correct filename in debug info after includes
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Dec 12, 2022
1 parent 49780d5 commit 4689a43
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/sile.lua
Expand Up @@ -321,10 +321,12 @@ function SILE.processFile (filename, format, options)
end
doc = file:read("*a")
end
local cpf = SILE.currentlyProcessingFile
SILE.currentlyProcessingFile = filename
local pId = SILE.traceStack:pushDocument(filename, doc)
local ret = SILE.processString(doc, format, filename, options)
SILE.traceStack:pop(pId)
SILE.currentlyProcessingFile = cpf
return ret
end

Expand Down

0 comments on commit 4689a43

Please sign in to comment.