summaryrefslogtreecommitdiff
path: root/edit-gnu.c
diff options
context:
space:
mode:
authorToby Goodwin <toby@paccrat.org>2014-08-31 22:40:19 +0100
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:23:24 +0100
commite477187400f55d5de0b06f6629d9b18d79ce2690 (patch)
tree71251f81ffb9df99c6c3421799bf03c3a333b400 /edit-gnu.c
parent16fadbd2cf8cfebbf3b2951f750b13d9816e36fa (diff)
quoting for filename completion
Diffstat (limited to 'edit-gnu.c')
-rw-r--r--edit-gnu.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/edit-gnu.c b/edit-gnu.c
index 1195337..6a997c5 100644
--- a/edit-gnu.c
+++ b/edit-gnu.c
@@ -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)