diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2012-03-31 11:19:23 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2012-03-31 11:19:23 -0400 |
commit | a52e6fe7bcf86f7e52d7b1d6f59260cb57b565fa (patch) | |
tree | 432727f7445e3e4dd6c4aef23a635c659df77999 /src | |
parent | 5e83854d71bb05403768a97a415a129b0081564b (diff) | |
download | postgresql-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.c | 2 |
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++; |