diff options
Diffstat (limited to 'tex/context/base/file-mod.lua')
-rw-r--r-- | tex/context/base/file-mod.lua | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tex/context/base/file-mod.lua b/tex/context/base/file-mod.lua index 550e1eb19..bf369d035 100644 --- a/tex/context/base/file-mod.lua +++ b/tex/context/base/file-mod.lua @@ -101,7 +101,7 @@ function commands.usemodules(prefix,askedname,truename) local truename = truename or environment.truefilename(askedname) local hasprefix = prefix and prefix ~= "" local hashname = ((hasprefix and prefix) or "*") .. "-" .. truename - local status = modstatus[hashname] + local status = modstatus[hashname] or false -- yet unset if status == 0 then -- not found elseif status == 1 then @@ -139,9 +139,7 @@ function commands.usemodules(prefix,askedname,truename) -- assume a user namespace report_modules("using user prefixed file %a",truename) status = 1 - elseif not permit_unprefixed then - -- forget about it - elseif usemodule(truename) then + elseif permit_unprefixed and usemodule(truename) then report_modules("using unprefixed file %a",truename) status = 1 else |