parse.y: reset buffer
* parse.y (rb_parser_printf): reset debug_buffer after print out. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a9b40cad41
commit
9d34ea9e35
1
parse.y
1
parse.y
@ -11047,6 +11047,7 @@ rb_parser_printf(struct parser_params *parser, const char *fmt, ...)
|
|||||||
va_end(ap);
|
va_end(ap);
|
||||||
if (RSTRING_END(mesg)[-1] == '\n') {
|
if (RSTRING_END(mesg)[-1] == '\n') {
|
||||||
rb_io_write(rb_stdout, mesg);
|
rb_io_write(rb_stdout, mesg);
|
||||||
|
parser->debug_buffer = Qnil;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user