aboutsummaryrefslogtreecommitdiff
path: root/editor.h
diff options
context:
space:
mode:
Diffstat (limited to 'editor.h')
-rw-r--r--editor.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/editor.h b/editor.h
index 3fd130a..5a288b6 100644
--- a/editor.h
+++ b/editor.h
@@ -7,6 +7,7 @@
#include <stdbool.h>
typedef struct Editor Editor;
+typedef struct File File;
typedef struct Win Win;
#include "ui.h"
@@ -17,8 +18,6 @@ typedef struct Win Win;
#include "ring-buffer.h"
#include "map.h"
-typedef struct File File;
-
typedef union {
bool b;
int i;
@@ -194,6 +193,7 @@ enum Mark {
struct File {
Text *text;
+ const char *name;
int refcount;
Mark marks[MARK_LAST];
File *next, *prev;
@@ -291,6 +291,8 @@ bool editor_window_split(Win*);
/* focus the next / previous window */
void editor_window_next(Editor*);
void editor_window_prev(Editor*);
+/* set the filename of the file displayed in this window */
+void editor_window_name(Win*, const char *filename);
void editor_window_jumplist_add(Win*, size_t pos);
size_t editor_window_jumplist_prev(Win*);