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:
parent
5e83854d71
commit
a52e6fe7bc
@ -3595,7 +3595,7 @@ get_previous_words(int point, char **previous_words, int nwords)
|
|||||||
{
|
{
|
||||||
if (buf[start] == '"')
|
if (buf[start] == '"')
|
||||||
inquotes = !inquotes;
|
inquotes = !inquotes;
|
||||||
else if (!inquotes)
|
if (!inquotes)
|
||||||
{
|
{
|
||||||
if (buf[start] == ')')
|
if (buf[start] == ')')
|
||||||
parentheses++;
|
parentheses++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user