aboutsummaryrefslogtreecommitdiff
path: root/editor.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-04-21 12:32:38 +0200
committerMarc André Tanner <mat@brain-dump.org>2015-04-29 22:51:15 +0200
commit6c75ef9db175d935b99ff1d6c96b30020932a104 (patch)
tree0f0bca1ce6b369cf942175a49929162b8459568d /editor.h
parentc8f638a00cebdaf757760566b01e53ebf66a3cdb (diff)
downloadvis-6c75ef9db175d935b99ff1d6c96b30020932a104.tar.gz
vis-6c75ef9db175d935b99ff1d6c96b30020932a104.tar.xz
Make operators return new cursor position
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 0bff84e..769337e 100644
--- a/editor.h
+++ b/editor.h
@@ -74,7 +74,7 @@ typedef struct {
} OperatorContext;
typedef struct {
- void (*func)(OperatorContext*); /* function implementing the operator logic */
+ size_t (*func)(OperatorContext*); /* operator logic, returns new cursor position */
} Operator;
typedef struct {