diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c index 6f481bb24d..975d65584b 100644 --- a/src/bin/psql/tab-complete.c +++ b/src/bin/psql/tab-complete.c @@ -3595,7 +3595,7 @@ get_previous_words(int point, char **previous_words, int nwords) { if (buf[start] == '"') inquotes = !inquotes; - else if (!inquotes) + if (!inquotes) { if (buf[start] == ')') parentheses++;