diff options
Diffstat (limited to 'tex/context/base/file-res.lua')
-rw-r--r-- | tex/context/base/file-res.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tex/context/base/file-res.lua b/tex/context/base/file-res.lua index d0db95f59..24b0f1cfc 100644 --- a/tex/context/base/file-res.lua +++ b/tex/context/base/file-res.lua @@ -22,7 +22,7 @@ local found = { } -- can best be done in the resolver itself local function readfilename(specification,backtrack,treetoo) local name = specification.filename - local fnd = found[name] + local fnd = name and found[name] if not fnd then if isfile(name) then if trace_files then @@ -66,6 +66,8 @@ local function readfilename(specification,backtrack,treetoo) return fnd or "" end +--~ resolvers.readfilename = readfilename -- bonus use getreadfilename instead + function finders.job(specification) return readfilename(specification,false, false) end -- current path, no backtracking function finders.loc(specification) return readfilename(specification,resolvers.maxreadlevel,false) end -- current path, backtracking function finders.sys(specification) return readfilename(specification,false, true ) end -- current path, obeys tex search |