aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2012-03-31 11:19:23 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2012-03-31 11:19:23 -0400
commita52e6fe7bcf86f7e52d7b1d6f59260cb57b565fa (patch)
tree432727f7445e3e4dd6c4aef23a635c659df77999 /src
parent5e83854d71bb05403768a97a415a129b0081564b (diff)
downloadpostgresql-a52e6fe7bcf86f7e52d7b1d6f59260cb57b565fa.tar.gz
postgresql-a52e6fe7bcf86f7e52d7b1d6f59260cb57b565fa.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/bin/psql/tab-complete.c2
1 files changed, 1 insertions, 1 deletions
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++;