mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-03-07 19:47:50 +08:00
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] == '"')
|
||||
inquotes = !inquotes;
|
||||
else if (!inquotes)
|
||||
if (!inquotes)
|
||||
{
|
||||
if (buf[start] == ')')
|
||||
parentheses++;
|
||||
|
Loading…
Reference in New Issue
Block a user