1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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:
nobu 2015-12-13 15:20:20 +00:00
parent a9b40cad41
commit 9d34ea9e35

View file

@ -11047,6 +11047,7 @@ rb_parser_printf(struct parser_params *parser, const char *fmt, ...)
va_end(ap);
if (RSTRING_END(mesg)[-1] == '\n') {
rb_io_write(rb_stdout, mesg);
parser->debug_buffer = Qnil;
}
}
#endif