Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
magic-lantern
magic-lantern
Commits
c2a136167e99
Commit
c6b28d67
authored
Mar 21, 2016
by
David Milligan
Browse files
lua scripting: console.write should not automatically add newlines
--HG-- branch : lua_fix
parent
6ca929aca71d
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/lua/lua_console.c
View file @
c2a13616
...
...
@@ -49,7 +49,7 @@ static int luaCB_console_clear(lua_State * L)
*/
static
int
luaCB_console_write
(
lua_State
*
L
)
{
if
(
lua_isstring
(
L
,
1
))
p
uts
(
lua_tostring
(
L
,
1
));
if
(
lua_isstring
(
L
,
1
))
p
rintf
(
"%s"
,
lua_tostring
(
L
,
1
));
return
0
;
}
...
...
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