aboutsummaryrefslogtreecommitdiff
path: root/editor.h
diff options
context:
space:
mode:
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