From b5d121dc1ca4edc0cfff888ba411f0837e6e0ebc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Mon, 25 Aug 2014 18:47:00 +0200 Subject: Move motion related stuff into own file --- editor.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'editor.h') diff --git a/editor.h b/editor.h index d36e503..f141963 100644 --- a/editor.h +++ b/editor.h @@ -1,5 +1,9 @@ +#ifndef EDITOR_H +#define EDITOR_H + #include #include +#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 -- cgit v1.2.3