summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2014-01-02 17:19:53 +0100
committerPhilipp Gesang <phg42.2a@gmail.com>2014-01-02 21:00:55 +0100
commit298dffaece66c307f9dcbfb23bba855385aa7132 (patch)
tree39f4af5083739e253a699c1b5f1f5cb076dc0547
parenta679d233954dc989621bb6754d838dc537fd3d02 (diff)
downloadluaotfload-298dffaece66c307f9dcbfb23bba855385aa7132.tar.gz
[main] fix path resolver
Close #162
-rw-r--r--luaotfload.dtx15
1 files changed, 8 insertions, 7 deletions
diff --git a/luaotfload.dtx b/luaotfload.dtx
index adbdf26..08f56af 100644
--- a/luaotfload.dtx
+++ b/luaotfload.dtx
@@ -2078,13 +2078,14 @@ request_resolvers.path = function (specification)
name)
file_resolver (specification)
else
- local suffix = filesuffix (name)
- if formats[suffix] then
- specification.forced = suffix
- specification.name = file.removesuffix(name)
- else
- specification.name = name
- end
+ local suffix = filesuffix (name)
+ if formats[suffix] then
+ specification.forced = suffix
+ specification.name = file.removesuffix(name)
+ specification.forcedname = name
+ else
+ specification.name = name
+ end
end
end