summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'file.c')
-rw-r--r--file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/file.c b/file.c
index 78505df..f432b1d 100644
--- a/file.c
+++ b/file.c
@@ -7,9 +7,9 @@
#include <string.h>
#include <unistd.h>
+#include "error.h"
#include "row.h"
#include "syntax.h"
-#include "terminal.h"
char* editor_rows_to_string(struct editor_state* editor, int* buffer_length)
{
@@ -43,7 +43,7 @@ void editor_open(struct editor_state* editor, char* filename)
FILE* fp = fopen(filename, "r");
if (!fp)
- die("fopen");
+ fatal_error("fopen");
char* line = NULL;
size_t line_capacity = 0;