summaryrefslogtreecommitdiff
path: root/tex/context/base/strc-ref.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/strc-ref.lua')
-rw-r--r--tex/context/base/strc-ref.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/tex/context/base/strc-ref.lua b/tex/context/base/strc-ref.lua
index 6cc1004e9..4962b8d8f 100644
--- a/tex/context/base/strc-ref.lua
+++ b/tex/context/base/strc-ref.lua
@@ -653,7 +653,14 @@ local function resolve(prefix,reference,args,set) -- we start with prefix,refere
if var then
var.reference = ri
if not var.outer and var.inner then
- local d = defined[prefix][var.inner] or defined[""][var.inner]
+--~ local d = defined[prefix]
+--~ d = d and d[var.inner]
+--~ if not d then
+--~ d = defined[""]
+--~ d = d and d[var.inner]
+--~ end
+ local d = defined[prefix] or defined[""]
+ d = d and d[var.inner]
if d then
resolve(prefix,d[2],var.arguments,set) -- args can be nil
else