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:
parent
a9b40cad41
commit
9d34ea9e35
1 changed files with 1 additions and 0 deletions
1
parse.y
1
parse.y
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue