Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7cc0d6a

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 completionbehavior doesn't seem to be quite perfect in that situation, but it'sbetter than failing to build at all...
1 parente33f550 commit7cc0d6a

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+
#ifdefHAVE_RL_COMPLETION_APPEND_CHARACTER
535536
rl_completion_append_character='\0';
537+
#endif
536538
}
537539

538540

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp