Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1b22a8c

Browse files
committed
Clear paren level flag on \r or any backslash command, rather than
keeping parenlevel unchanged.
1 parent 397e9b3 commit 1b22a8c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/bin/psql/mainloop.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ MainLoop(PsqlSettings *pset, FILE *source)
313313
{
314314
const char *end_of_cmd = NULL;
315315

316+
paren_level = 0;
316317
line[i - prevlen] = '\0'; /* overwrites backslash */
317318

318319
/* is there anything else on the line? */

0 commit comments

Comments
 (0)