aboutsummaryrefslogtreecommitdiff
path: root/editor.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-10-21 16:08:32 +0200
committerMarc André Tanner <mat@brain-dump.org>2015-10-22 19:48:40 +0200
commit83f8a97b11d708a8c1d210cb44e0ab0088cdffa5 (patch)
treea366e4b1440675bb78d5ca75ea2758dde27b1803 /editor.h
parent3f6f3bd84b3278fa653d203c0665c53ebfb0cd14 (diff)
downloadvis-83f8a97b11d708a8c1d210cb44e0ab0088cdffa5.tar.gz
vis-83f8a97b11d708a8c1d210cb44e0ab0088cdffa5.tar.xz
vis: pass editor instance to command handling funcitons
Diffstat (limited to 'editor.h')
-rw-r--r--editor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor.h b/editor.h
index 655ef07..71d7fc3 100644
--- a/editor.h
+++ b/editor.h
@@ -128,7 +128,7 @@ typedef struct { /* command definitions for the ':'-prompt */
const char *name[3]; /* name and optional alias for the command */
/* command logic called with a NULL terminated array of arguments.
* argv[0] will be the command name */
- bool (*cmd)(Filerange*, enum CmdOpt opt, const char *argv[]);
+ bool (*cmd)(Vis*, Filerange*, enum CmdOpt opt, const char *argv[]);
enum CmdOpt opt; /* command option flags */
} Command;