aboutsummaryrefslogtreecommitdiff
path: root/view.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-11-28 18:45:07 +0100
committerMarc André Tanner <mat@brain-dump.org>2015-11-28 20:09:15 +0100
commitb1c462beb8b9e0bae7f8886054eee2fe361149a8 (patch)
tree8fc350e8d1bde3b3bc530969bfaa24e485ab87a9 /view.h
parent30e9673fdb22905df853ef07b3826fa19b28831c (diff)
downloadvis-b1c462beb8b9e0bae7f8886054eee2fe361149a8.tar.gz
vis-b1c462beb8b9e0bae7f8886054eee2fe361149a8.tar.xz
view: remove ViewEvent infrastructure
The only used event handler was used to update the '< and '> marks which is now taken care of by the leave handler of the visual modes.
Diffstat (limited to 'view.h')
-rw-r--r--view.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/view.h b/view.h
index 4447dd7..25b186f 100644
--- a/view.h
+++ b/view.h
@@ -13,11 +13,6 @@ typedef struct Cursor Cursor;
typedef struct Selection Selection;
typedef struct {
- void *data;
- void (*selection)(void *data, Filerange*);
-} ViewEvent;
-
-typedef struct {
int width; /* display width i.e. number of columns ocupied by this character */
size_t len; /* number of bytes the character displayed in this cell uses, for
character which use more than 1 column to display, their lenght
@@ -45,7 +40,7 @@ typedef struct {
size_t col;
} CursorPos;
-View *view_new(Text*, lua_State*, ViewEvent*);
+View *view_new(Text*, lua_State*);
void view_ui(View*, UiWin*);
/* change associated text displayed in this window */
void view_reload(View*, Text*);