From c3bbd835fca0ba184f191b270d9aebfc2466be82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sun, 25 Sep 2016 10:57:01 +0200 Subject: 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 --- vis.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'vis.h') 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*); -- cgit v1.2.3