diff options
author | David Shaw <[email protected]> | 2005-03-21 20:47:28 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2005-03-21 20:47:28 +0000 |
commit | 57b9ba5e16ece5a3999621ba48eb4004a6b1ec3e (patch) | |
tree | d1a07fb5bca1140ff31b8b8b54923f14529b9541 /g10/openfile.c | |
parent | * keyedit.c (command_generator, keyedit_completion): Changed (diff) | |
download | gnupg-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/openfile.c')
-rw-r--r-- | g10/openfile.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/g10/openfile.c b/g10/openfile.c index 59e19a485..5454d10c0 100644 --- a/g10/openfile.c +++ b/g10/openfile.c @@ -1,5 +1,6 @@ /* openfile.c - * Copyright (C) 1998, 1999, 2000, 2001, 2003 Free Software Foundation, Inc. + * Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, + * 2005 Free Software Foundation, Inc. * * This file is part of GnuPG. * @@ -147,8 +148,10 @@ ask_outfile_name( const char *name, size_t namelen ) sprintf(prompt, "%s [%s]: ", s, defname ); else sprintf(prompt, "%s: ", s ); + tty_enable_completion(NULL); fname = cpr_get("openfile.askoutname", prompt ); cpr_kill_prompt(); + tty_disable_completion(); m_free(prompt); if( !*fname ) { m_free( fname ); fname = NULL; |