summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-13 15:20:20 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-13 15:20:20 +0000
commit9d34ea9e358ab36b5baa3e6205ff2dd0508bb8c7 (patch)
tree37b2617e7f3ac9d876b7f68ac178b48509798243
parenta9b40cad416a1e411d6014b3e1ce566f7b4b6254 (diff)
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
-rw-r--r--parse.y1
1 files changed, 1 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index 68ce104..19e5bb8 100644
--- a/parse.y
+++ b/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