aboutsummaryrefslogtreecommitdiff
path: root/editor.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-10-21 23:47:58 +0200
committerMarc André Tanner <mat@brain-dump.org>2015-10-22 19:50:24 +0200
commit549fcb4c05b6134ff0fd17ec502e0c23b2827a91 (patch)
tree5ed53dd7605375c3cd79ce21ebe251210b29eb01 /editor.h
parent4509a105bbe97db8b7d2b82b57f4d7413104b5c7 (diff)
downloadvis-549fcb4c05b6134ff0fd17ec502e0c23b2827a91.tar.gz
vis-549fcb4c05b6134ff0fd17ec502e0c23b2827a91.tar.xz
vis: remove yet more global state from motion functions
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 6ae2cb2..a9cc4ae 100644
--- a/editor.h
+++ b/editor.h
@@ -82,11 +82,11 @@ typedef struct {
} Operator;
typedef struct {
- size_t (*cmd)(const Arg*); /* a custom movement based on user input from vis.c */
size_t (*cur)(Cursor*); /* a movement based on current window content from view.h */
size_t (*txt)(Text*, size_t pos); /* a movement form text-motions.h */
size_t (*file)(Vis*, File*, size_t pos);
size_t (*vis)(Vis*, Text*, size_t pos);
+ size_t (*view)(Vis*, View*);
enum {
LINEWISE = 1 << 0,
CHARWISE = 1 << 1,