diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2014-08-25 18:47:00 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2014-08-25 18:47:00 +0200 |
| commit | b5d121dc1ca4edc0cfff888ba411f0837e6e0ebc (patch) | |
| tree | 35a3aef6d494c93674922f6b5500e0d273cb0848 /editor.h | |
| parent | bc0f09dce9fb9420ea1d5c10ebfacf50916b10af (diff) | |
| download | vis-b5d121dc1ca4edc0cfff888ba411f0837e6e0ebc.tar.gz vis-b5d121dc1ca4edc0cfff888ba411f0837e6e0ebc.tar.xz | |
Move motion related stuff into own file
Diffstat (limited to 'editor.h')
| -rw-r--r-- | editor.h | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -1,5 +1,9 @@ +#ifndef EDITOR_H +#define EDITOR_H + #include <curses.h> #include <regex.h> +#include "text.h" typedef struct { short fg, bg; /* fore and background color */ @@ -25,10 +29,6 @@ typedef struct { /* a syntax definition */ typedef struct Editor Editor; typedef size_t Filepos; -typedef struct { - Filepos start, end; /* range in bytes from start of file */ -} Filerange; - typedef void (*editor_statusbar_t)(WINDOW *win, bool active, const char *filename, int line, int col); /* initialize a new editor with the available screen size */ @@ -102,3 +102,5 @@ void editor_init(void); // TODO: comment short editor_color_reserve(short fg, short bg); short editor_color_get(short fg, short bg); + +#endif |
