mirror of
https://github.com/postgres/postgres.git
synced 2025-07-15 19:21:59 +03: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:
@ -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++;
|
||||||
|
Reference in New Issue
Block a user