summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/luatexdir/tex/texfileio.c
diff options
context:
space:
mode:
authorLuigi Scarso <luigi.scarso@gmail.com>2021-12-31 10:38:50 +0000
committerLuigi Scarso <luigi.scarso@gmail.com>2021-12-31 10:38:50 +0000
commitcb71b62afd23fc35a04304858ee2d221b8a51dcb (patch)
tree17511b8aa9976f8420b25c24dc1060b65074257c /Build/source/texk/web2c/luatexdir/tex/texfileio.c
parentc46a6d281af96d35e0b0efa75a7aafac88677a8a (diff)
sync luatex with upstream r7476.
git-svn-id: svn://tug.org/texlive/trunk@61453 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/tex/texfileio.c')
-rw-r--r--Build/source/texk/web2c/luatexdir/tex/texfileio.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Build/source/texk/web2c/luatexdir/tex/texfileio.c b/Build/source/texk/web2c/luatexdir/tex/texfileio.c
index 4e0677a564b..8d8cdc04363 100644
--- a/Build/source/texk/web2c/luatexdir/tex/texfileio.c
+++ b/Build/source/texk/web2c/luatexdir/tex/texfileio.c
@@ -637,8 +637,11 @@ void term_input(void)
int k;
/*tex Now the user sees the prompt for sure: */
update_terminal();
- if (!input_ln(term_in, true))
+ if (!input_ln(term_in, true)) {
+ /*tex initialize limit to avoid printing some garbage. */
+ ilimit=0;
fatal_error("End of file on the terminal!");
+ }
/*tex The user's line ended with \.{<return>}: */
term_offset = 0;
/*tex Prepare to echo the input. */