aboutsummaryrefslogtreecommitdiffstats
path: root/g10/plaintext.c
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2005-03-21 20:47:28 +0000
committerDavid Shaw <[email protected]>2005-03-21 20:47:28 +0000
commit57b9ba5e16ece5a3999621ba48eb4004a6b1ec3e (patch)
treed1a07fb5bca1140ff31b8b8b54923f14529b9541 /g10/plaintext.c
parent* keyedit.c (command_generator, keyedit_completion): Changed (diff)
downloadgnupg-57b9ba5e16ece5a3999621ba48eb4004a6b1ec3e.tar.gz
gnupg-57b9ba5e16ece5a3999621ba48eb4004a6b1ec3e.zip
* gpgv.c: Stubs for tty_enable_completion() & tty_disable_completion().
* openfile.c (ask_outfile_name): Enable readline completion when prompting for an output filename. * plaintext.c (ask_for_detached_datafile): Enable readline completion when prompting for a detached sig datafile.
Diffstat (limited to 'g10/plaintext.c')
-rw-r--r--g10/plaintext.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/g10/plaintext.c b/g10/plaintext.c
index 6eecb6944..0c74b1e6f 100644
--- a/g10/plaintext.c
+++ b/g10/plaintext.c
@@ -1,6 +1,6 @@
/* plaintext.c - process plaintext packets
- * Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003,
- * 2004 Free Software Foundation, Inc.
+ * Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004,
+ * 2005 Free Software Foundation, Inc.
*
* This file is part of GnuPG.
*
@@ -446,8 +446,10 @@ ask_for_detached_datafile( MD_HANDLE md, MD_HANDLE md2,
tty_printf(_("Detached signature.\n"));
do {
m_free(answer);
+ tty_enable_completion(NULL);
answer = cpr_get("detached_signature.filename",
_("Please enter name of data file: "));
+ tty_disable_completion();
cpr_kill_prompt();
if( any && !*answer ) {
rc = G10ERR_READ_FILE;