aboutsummaryrefslogtreecommitdiff
path: root/view.h
diff options
context:
space:
mode:
Diffstat (limited to 'view.h')
-rw-r--r--view.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/view.h b/view.h
index ea8bca6..1f3bae1 100644
--- a/view.h
+++ b/view.h
@@ -3,6 +3,11 @@
#include <stddef.h>
#include <stdbool.h>
+#if CONFIG_LUA
+#include <lua.h>
+#else
+typedef struct lua_State lua_State;
+#endif
#include "register.h"
#include "text.h"
#include "ui.h"
@@ -10,7 +15,6 @@
typedef struct View View;
typedef struct Cursor Cursor;
typedef struct Selection Selection;
-typedef struct lua_State lua_State;
typedef struct {
int width; /* display width i.e. number of columns ocupied by this character */