From 3bdc9b9072bba774cd5c604fe185d39ddbdc911e Mon Sep 17 00:00:00 2001 From: Hans Hagen Date: Fri, 9 Dec 2022 18:16:10 +0100 Subject: 2022-12-09 16:33:00 --- source/luametatex/source/lua/lmtnodelib.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'source/luametatex/source/lua') diff --git a/source/luametatex/source/lua/lmtnodelib.c b/source/luametatex/source/lua/lmtnodelib.c index afaa8bed5..cc7501786 100644 --- a/source/luametatex/source/lua/lmtnodelib.c +++ b/source/luametatex/source/lua/lmtnodelib.c @@ -10116,20 +10116,7 @@ void lmt_node_filter_callback( /*tex redundant as we set top anyway */ lua_pop(L, 2); /*tex find tail in order to update tail */ - start = node_next(head); - if (start) { - /*tex maybe just always slide (harmless and fast) */ - halfword last = node_next(start); - while (last) { - start = last; - last = node_next(start); - } - /*tex we're at the end now */ - *tail = start; - } else { - /*tex we're already at the end */ - *tail = head; - } + *tail = tex_tail_of_node_list(head); lmt_callback_wrapup(L, top); } } -- cgit v1.2.3