aboutsummaryrefslogtreecommitdiff
path: root/editor.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-04-21 11:57:17 +0200
committerMarc André Tanner <mat@brain-dump.org>2015-04-21 11:57:17 +0200
commitc2e588fb932420f09801f09218d359cdcb6f5c7f (patch)
tree73179c5febe107f52fe3bc2c4c8e102992a26a45 /editor.h
parent3f111e0ab024c0220759f15c1a10cfe470189622 (diff)
downloadvis-c2e588fb932420f09801f09218d359cdcb6f5c7f.tar.gz
vis-c2e588fb932420f09801f09218d359cdcb6f5c7f.tar.xz
Cleanup implementation of movements to marks
Diffstat (limited to 'editor.h')
-rw-r--r--editor.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/editor.h b/editor.h
index a3077c5..64f605c 100644
--- a/editor.h
+++ b/editor.h
@@ -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;