From c2e588fb932420f09801f09218d359cdcb6f5c7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Tue, 21 Apr 2015 11:57:17 +0200 Subject: Cleanup implementation of movements to marks --- editor.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'editor.h') 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; -- cgit v1.2.3