summaryrefslogtreecommitdiff
path: root/tex/context/base/strc-reg.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/strc-reg.lua')
-rw-r--r--tex/context/base/strc-reg.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/tex/context/base/strc-reg.lua b/tex/context/base/strc-reg.lua
index d37997baf..b2deb0605 100644
--- a/tex/context/base/strc-reg.lua
+++ b/tex/context/base/strc-reg.lua
@@ -671,7 +671,13 @@ function registers.flush(data,options,prefixspec,pagespec)
local entry = data[d]
if entry.metadata.kind == "see" then
local list = entry.list
- list[#list] = nil
+ if #list > 1 then
+ list[#list] = nil
+ else
+ -- we have an \seeindex{Foo}{Bar} without Foo being defined anywhere
+ report_registers("invalid see entry in register '%s', reference '%s'",
+ entry.metadata.name or "?",list[1][1] or "?")
+ end
end
end
while d < #data do