aboutsummaryrefslogtreecommitdiff
path: root/editor.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-10-21 23:30:14 +0200
committerMarc André Tanner <mat@brain-dump.org>2015-10-22 19:50:24 +0200
commita3bb33c07d2ff62e4b2c6ec0782bb86211a42308 (patch)
tree2f07bad5790f1b707629f1c97253d350a778c064 /editor.h
parentc9fd8bd23b633d254940c77e40bb280e2332b579 (diff)
downloadvis-a3bb33c07d2ff62e4b2c6ec0782bb86211a42308.tar.gz
vis-a3bb33c07d2ff62e4b2c6ec0782bb86211a42308.tar.xz
vis: remove more global state from motion functions
Diffstat (limited to 'editor.h')
-rw-r--r--editor.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/editor.h b/editor.h
index 1cebfb0..0187e0a 100644
--- a/editor.h
+++ b/editor.h
@@ -85,7 +85,8 @@ typedef struct {
size_t (*cmd)(const Arg*); /* a custom movement based on user input from vis.c */
size_t (*view)(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)(File*, size_t pos);
+ size_t (*file)(Vis*, File*, size_t pos);
+ size_t (*vis)(Vis*, Text*, size_t pos);
enum {
LINEWISE = 1 << 0,
CHARWISE = 1 << 1,