diff options
| author | Toby Goodwin <toby@paccrat.org> | 2014-08-31 22:40:19 +0100 |
|---|---|---|
| committer | Toby Goodwin <toby@paccrat.org> | 2015-05-16 21:23:24 +0100 |
| commit | e477187400f55d5de0b06f6629d9b18d79ce2690 (patch) | |
| tree | 71251f81ffb9df99c6c3421799bf03c3a333b400 /edit-gnu.c | |
| parent | 16fadbd2cf8cfebbf3b2951f750b13d9816e36fa (diff) | |
quoting for filename completion
Diffstat (limited to 'edit-gnu.c')
| -rw-r--r-- | edit-gnu.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -4,6 +4,7 @@ #include <stdio.h> #include <readline/readline.h> #include <readline/history.h> +#include <readline/rltypedefs.h> #include "edit.h" @@ -18,6 +19,8 @@ void *edit_begin(int fd) { struct cookie *c; rl_catch_signals = 0; + rl_completer_quote_characters = "'"; + rl_filename_quote_characters = "\t\n !#$&'()*;<=>?@[\\]^`{|}~"; hist = varlookup("history"); if (hist != NULL) |