Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
544ee812
Commit
544ee812
authored
May 28, 2020
by
Terry Ellison
Committed by
Marcel Stör
Jun 09, 2020
Browse files
Updated lua.c to fix #3118 telnet issue
parent
a04b085d
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/lua53/lua.c
View file @
544ee812
...
...
@@ -335,7 +335,8 @@ static int l_read_stdin (lua_State *L) {
return
1
;
/* return false if pipe empty */
if
(
b
[
l
-
1
]
!=
'\n'
)
{
/* likewise if not CR terminated, then unread and ditto */
lua_getfield
(
L
,
1
,
"unread"
);
lua_insert
(
L
,
1
);
/* insert false return above the pipe */
lua_getfield
(
L
,
2
,
"unread"
);
lua_insert
(
L
,
1
);
/* insert pipe.unread above the pipe */
lua_call
(
L
,
2
,
0
);
/* pobj:unread(line) */
return
1
;
/* return false */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment