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:
parent
8c1ce08da9
commit
36b608417b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue