diff options
Diffstat (limited to 'libcli')
-rw-r--r-- | libcli/smbreadline/smbreadline.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libcli/smbreadline/smbreadline.c b/libcli/smbreadline/smbreadline.c index 80e10b0071c..c58555400ca 100644 --- a/libcli/smbreadline/smbreadline.c +++ b/libcli/smbreadline/smbreadline.c @@ -137,6 +137,12 @@ char *smb_readline(const char *prompt, void (*callback)(void), works in all of them to date, but we get compiler warnings in some. */ rl_attempted_completion_function = RL_COMPLETION_CAST completion_fn; + + /* + * We only want sensible characters as the word-break chars + * for the most part. This allows us to tab through a path. + */ + rl_basic_word_break_characters = " \t\n"; } #if HAVE_DECL_RL_EVENT_HOOK |