From 7cc0d6ae9dc485d954edce84e28f665ac6151bb9 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 21 Jan 2000 23:32:36 +0000 Subject: 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... --- src/bin/psql/tab-complete.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/bin/psql') 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 } -- cgit v1.2.3