aboutsummaryrefslogtreecommitdiff
path: root/editor.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2014-08-25 18:47:00 +0200
committerMarc André Tanner <mat@brain-dump.org>2014-08-25 18:47:00 +0200
commitb5d121dc1ca4edc0cfff888ba411f0837e6e0ebc (patch)
tree35a3aef6d494c93674922f6b5500e0d273cb0848 /editor.h
parentbc0f09dce9fb9420ea1d5c10ebfacf50916b10af (diff)
downloadvis-b5d121dc1ca4edc0cfff888ba411f0837e6e0ebc.tar.gz
vis-b5d121dc1ca4edc0cfff888ba411f0837e6e0ebc.tar.xz
Move motion related stuff into own file
Diffstat (limited to 'editor.h')
-rw-r--r--editor.h10
1 files changed, 6 insertions, 4 deletions
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 <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