diff --git a/parse.y b/parse.y index 68ce1044d5..19e5bb8a76 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