summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2010-06-15 21:34:57 +0000
committerjilles <jilles@FreeBSD.org>2010-06-15 21:34:57 +0000
commit1babf0ea165658db31c411e8e666ba5453b8e1f0 (patch)
treea84dac06f08aa076cd8d1ae683ae34e3228efa78 /include
parent257c4e7afba0fb7f97f82475ee329d3f98179c91 (diff)
downloadFreeBSD-src-1babf0ea165658db31c411e8e666ba5453b8e1f0.zip
FreeBSD-src-1babf0ea165658db31c411e8e666ba5453b8e1f0.tar.gz
libedit: Allow simple quoting in filename completion.
The completer recognizes characters escaped with backslashes as being literal parts of a word, and adds backslashes to avoid almost all misinterpretation. In particular, filenames containing spaces can be completed correctly. For bug compatibility with the NetBSD version, the improved completion function has a new name, _el_fn_sh_complete, and _el_fn_complete is unchanged. Submitted by: Guy Yur
Diffstat (limited to 'include')
-rw-r--r--include/histedit.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/histedit.h b/include/histedit.h
index cb6e4d6..3f158db 100644
--- a/include/histedit.h
+++ b/include/histedit.h
@@ -106,6 +106,7 @@ int el_parse(EditLine *, int, const char **);
int el_set(EditLine *, int, ...);
int el_get(EditLine *, int, ...);
unsigned char _el_fn_complete(EditLine *, int);
+unsigned char _el_fn_sh_complete(EditLine *, int);
/*
* el_set/el_get parameters
OpenPOWER on IntegriCloud