From: Tom Lane Date: Sat, 31 Mar 2012 15:19:23 +0000 (-0400) Subject: Fix glitch recently introduced in psql tab completion. X-Git-Tag: REL9_2_BETA1~201 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a52e6fe7bcf86f7e52d7b1d6f59260cb57b565fa;p=thirdparty%2Fpostgresql.git Fix glitch recently introduced in psql tab completion. Over-optimization (by me, looks like :-() broke the case of recognizing a word boundary just before a quoted identifier. Reported and diagnosed by Dean Rasheed. --- diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c index 6f481bb24dd..975d65584b8 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++;