Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 7cc0d6a

Browse files
committed
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...
1 parent e33f550 commit 7cc0d6a

File tree

4 files changed

+136
-93
lines changed

4 files changed

+136
-93
lines changed

src/bin/psql/tab-complete.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright 2000 by PostgreSQL Global Development Team
55
*
6-
* $Header: /cvsroot/pgsql/src/bin/psql/tab-complete.c,v 1.7 2000/01/18 23:30:24 petere Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/tab-complete.c,v 1.8 2000/01/21 23:32:36 tgl Exp $
77
*/
88

99
/*-----------
@@ -532,7 +532,9 @@ char ** psql_completion(char *text, int start, int end)
532532
attempts filename completion, and that's usually no good. */
533533
if (matches == NULL) {
534534
COMPLETE_WITH_CONST("");
535+
#ifdef HAVE_RL_COMPLETION_APPEND_CHARACTER
535536
rl_completion_append_character = '\0';
537+
#endif
536538
}
537539

538540

0 commit comments

Comments
 (0)