From 9fd4c4523b1e69b5c49de7fda01da5540e60fcda Mon Sep 17 00:00:00 2001
From: Philipp Gesang <phg42.2a@gmail.com>
Date: Thu, 2 Jan 2014 17:19:53 +0100
Subject: [main] fix path resolver

Close #162
---
 luaotfload.dtx | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

(limited to 'luaotfload.dtx')

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
 
-- 
cgit v1.2.3

