diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2015-11-28 18:45:07 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2015-11-28 20:09:15 +0100 |
| commit | b1c462beb8b9e0bae7f8886054eee2fe361149a8 (patch) | |
| tree | 8fc350e8d1bde3b3bc530969bfaa24e485ab87a9 /view.h | |
| parent | 30e9673fdb22905df853ef07b3826fa19b28831c (diff) | |
| download | vis-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.h | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -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*); |
