OSDN Git Service

Compatibility with LuaTeX 0.76.0
[luatex-ja/luatexja.git] / src / ltj-setwidth.lua
index ebd7393..30389e2 100644 (file)
@@ -18,7 +18,7 @@ local node_traverse = Dnode.traverse
 local node_new = Dnode.new
 local node_remove = luatexja.Dnode_remove -- Dnode.remove
 local node_tail = Dnode.tail
-local node_next = Dnode.getnext
+local node_next = (Dnode ~= node) and Dnode.getnext or node.next
 local has_attr = Dnode.has_attribute
 local set_attr = Dnode.set_attribute
 local node_insert_before = Dnode.insert_before