aboutsummaryrefslogtreecommitdiff
path: root/vis.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-09-25 10:57:01 +0200
committerMarc André Tanner <mat@brain-dump.org>2016-09-25 11:53:12 +0200
commitc3bbd835fca0ba184f191b270d9aebfc2466be82 (patch)
tree956502573e1e83d7bf39ec04c11cb8c1131a413c /vis.h
parentd3798ba58d3f8ebef9a024c8d538d7bebb0b6931 (diff)
downloadvis-c3bbd835fca0ba184f191b270d9aebfc2466be82.tar.gz
vis-c3bbd835fca0ba184f191b270d9aebfc2466be82.tar.xz
vis: move file name and word completion logic to a shell script
The shell script should be reviewed for quoting issues, currently it allows command injections as in: $ vis-complete "'; rm -f some-file; echo " However it is intended for interactive usage and from within vis it is only ever called with a valid completion prefix. The file name completion logic now supports nested directories. Close #347
Diffstat (limited to 'vis.h')
-rw-r--r--vis.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/vis.h b/vis.h
index 91f9868..a9ffb90 100644
--- a/vis.h
+++ b/vis.h
@@ -23,6 +23,9 @@ typedef struct Win Win;
#ifndef VIS_CLIPBOARD
#define VIS_CLIPBOARD "vis-clipboard"
#endif
+#ifndef VIS_COMPLETE
+#define VIS_COMPLETE "vis-complete"
+#endif
typedef struct {
void (*vis_init)(Vis*);