chfn: disable tab completion

The default readline tab completion that offers file listing from current
directory does not make any sense in this context.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2017-05-18 22:19:35 +01:00 committed by Karel Zak
parent 8c1ce08da9
commit 36b608417b
1 changed files with 1 additions and 0 deletions

View File

@ -237,6 +237,7 @@ static char *ask_new_field(struct chfn_control *ctl, const char *question,
printf("%s [%s]: ", question, def_val);
__fpurge(stdin);
#ifdef HAVE_LIBREADLINE
rl_bind_key('\t', rl_insert);
if ((buf = readline(NULL)) == NULL)
#else
if (getline(&buf, &dummy, stdin) < 0)