diff options
author | Hans Hagen <pragma@wxs.nl> | 2022-12-09 18:16:10 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2022-12-09 18:16:10 +0100 |
commit | 3bdc9b9072bba774cd5c604fe185d39ddbdc911e (patch) | |
tree | b8efd7c6a858544767c1d8a9a4efb20f60c039db /source/luametatex/source/lua | |
parent | fb63eac7402fbd3bb00d7591cc4fbac1b2db2582 (diff) | |
download | context-3bdc9b9072bba774cd5c604fe185d39ddbdc911e.tar.gz |
2022-12-09 16:33:00
Diffstat (limited to 'source/luametatex/source/lua')
-rw-r--r-- | source/luametatex/source/lua/lmtnodelib.c | 15 |
1 files changed, 1 insertions, 14 deletions
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); } } |