summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/mkiv/node-mig.lua
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/context/base/mkiv/node-mig.lua')
-rw-r--r--Master/texmf-dist/tex/context/base/mkiv/node-mig.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/context/base/mkiv/node-mig.lua b/Master/texmf-dist/tex/context/base/mkiv/node-mig.lua
index 32b09a1869c..b3820a7d86c 100644
--- a/Master/texmf-dist/tex/context/base/mkiv/node-mig.lua
+++ b/Master/texmf-dist/tex/context/base/mkiv/node-mig.lua
@@ -89,11 +89,12 @@ local function locate(head,first,last,ni,nm)
end
function nodes.handlers.migrate(head,where)
+ local done = false
if head then
if trace_migrations then
report_nodes("migration sweep %a",where)
end
- local current = head
+ local current = tonut(head)
while current do
local id = getid(current)
-- inserts_too is a temp hack, we should only do them when it concerns
@@ -123,12 +124,13 @@ function nodes.handlers.migrate(head,where)
setlink(last,n)
end
setlink(current,first)
+ done = true
current = last
end
end
current = getnext(next)
end
- return head
+ return head, done
end
end