diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2015-04-21 11:57:17 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2015-04-21 11:57:17 +0200 |
| commit | c2e588fb932420f09801f09218d359cdcb6f5c7f (patch) | |
| tree | 73179c5febe107f52fe3bc2c4c8e102992a26a45 /editor.h | |
| parent | 3f111e0ab024c0220759f15c1a10cfe470189622 (diff) | |
| download | vis-c2e588fb932420f09801f09218d359cdcb6f5c7f.tar.gz vis-c2e588fb932420f09801f09218d359cdcb6f5c7f.tar.xz | |
Cleanup implementation of movements to marks
Diffstat (limited to 'editor.h')
| -rw-r--r-- | editor.h | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -16,7 +16,7 @@ typedef struct EditorWin EditorWin; #include "ring-buffer.h" #include "map.h" - +typedef struct VisText VisText; typedef union { bool b; @@ -81,6 +81,7 @@ typedef struct { size_t (*cmd)(const Arg*); /* a custom movement based on user input from vis.c */ size_t (*win)(Win*); /* a movement based on current window content from window.h */ size_t (*txt)(Text*, size_t pos); /* a movement form text-motions.h */ + size_t (*vistxt)(VisText*, size_t pos); enum { LINEWISE = 1 << 0, CHARWISE = 1 << 1, @@ -190,9 +191,6 @@ enum Mark { MARK_LAST, }; - -typedef struct VisText VisText; - struct VisText { Text *data; int refcount; |
