From 1b22a8cb033b11721d22b5d5a6c550c571731dae Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Thu, 16 Dec 1999 23:54:41 +0000 Subject: [PATCH] Clear paren level flag on \r or any backslash command, rather than keeping parenlevel unchanged. --- src/bin/psql/mainloop.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bin/psql/mainloop.c b/src/bin/psql/mainloop.c index 1d3298187a..76da541736 100644 --- a/src/bin/psql/mainloop.c +++ b/src/bin/psql/mainloop.c @@ -313,6 +313,7 @@ MainLoop(PsqlSettings *pset, FILE *source) { const char *end_of_cmd = NULL; + paren_level = 0; line[i - prevlen] = '\0'; /* overwrites backslash */ /* is there anything else on the line? */ -- 2.40.0