aboutsummaryrefslogtreecommitdiff
path: root/src/bin/psql/tab-complete.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2000-01-21 23:32:36 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2000-01-21 23:32:36 +0000
commit7cc0d6ae9dc485d954edce84e28f665ac6151bb9 (patch)
tree3fd44c6bdd5a5128ed48899ef1ab3e788de7e1c9 /src/bin/psql/tab-complete.c
parente33f550bc06a0410ae5a64ad16cc29f8ed5a882f (diff)
downloadpostgresql-7cc0d6ae9dc485d954edce84e28f665ac6151bb9.tar.gz
postgresql-7cc0d6ae9dc485d954edce84e28f665ac6151bb9.zip
Fix tab-complete so it works with old versions of readline that don't
have the rl_completion_append_character variable. The tab completion behavior doesn't seem to be quite perfect in that situation, but it's better than failing to build at all...
Diffstat (limited to 'src/bin/psql/tab-complete.c')
-rw-r--r--src/bin/psql/tab-complete.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c
index 4bec69e6156..718c1732f05 100644
--- a/src/bin/psql/tab-complete.c
+++ b/src/bin/psql/tab-complete.c
@@ -3,7 +3,7 @@
*
* Copyright 2000 by PostgreSQL Global Development Team
*
- * $Header: /cvsroot/pgsql/src/bin/psql/tab-complete.c,v 1.7 2000/01/18 23:30:24 petere Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/tab-complete.c,v 1.8 2000/01/21 23:32:36 tgl Exp $
*/
/*-----------
@@ -532,7 +532,9 @@ char ** psql_completion(char *text, int start, int end)
attempts filename completion, and that's usually no good. */
if (matches == NULL) {
COMPLETE_WITH_CONST("");
+#ifdef HAVE_RL_COMPLETION_APPEND_CHARACTER
rl_completion_append_character = '\0';
+#endif
}