Clear paren level flag on \r or any backslash command, rather than

keeping parenlevel unchanged.
This commit is contained in:
Bruce Momjian 1999-12-16 23:54:41 +00:00
parent 397e9b32a3
commit 1b22a8cb03
1 changed files with 1 additions and 0 deletions

View File

@ -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? */