projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e83854
)
Fix glitch recently introduced in psql tab completion.
author
Tom Lane
<tgl@sss.pgh.pa.us>
Sat, 31 Mar 2012 15:19:23 +0000
(11:19 -0400)
committer
Tom Lane
<tgl@sss.pgh.pa.us>
Sat, 31 Mar 2012 15:19:23 +0000
(11:19 -0400)
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.
src/bin/psql/tab-complete.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/psql/tab-complete.c
b/src/bin/psql/tab-complete.c
index 6f481bb24dd40ebc59c1895be0c754a3fa45ea93..975d65584b85adad48677dfac9b23bc4b049167e 100644
(file)
--- 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++;