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.
This commit is contained in:
Tom Lane 2012-03-31 11:19:23 -04:00
parent 5e83854d71
commit a52e6fe7bc
1 changed files with 1 additions and 1 deletions

View File

@ -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++;