summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/luatexdir/lang/texlang.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/lang/texlang.c')
-rw-r--r--Build/source/texk/web2c/luatexdir/lang/texlang.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/luatexdir/lang/texlang.c b/Build/source/texk/web2c/luatexdir/lang/texlang.c
index 48a242fa09b..453d51404c6 100644
--- a/Build/source/texk/web2c/luatexdir/lang/texlang.c
+++ b/Build/source/texk/web2c/luatexdir/lang/texlang.c
@@ -1023,6 +1023,12 @@ void hnj_hyphenation(halfword head, halfword tail)
break;
}
wordlen++;
+ if (wordlen >= MAX_WORD_LEN) {
+ while (r && type(r) == glyph_node) {
+ r = vlink(r);
+ }
+ goto PICKUP;
+ }
if (lchar <= 32) {
if (lchar == 32) {
lchar = 0 ;
@@ -1140,6 +1146,7 @@ void hnj_hyphenation(halfword head, halfword tail)
}
}
}
+PICKUP:
expstart = null ;
explicit_hyphen = false;
wordlen = 0;