summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorcflip <cflip@cflip.net>2023-01-11 11:21:41 -0700
committercflip <cflip@cflip.net>2023-01-11 11:21:41 -0700
commit0324dda2cc779bcd6d3eb425216e29b37a9a95ed (patch)
tree84fb7faab49b0773339803cb893da0c958f9d7e8 /file.c
parent61c387397d03c479ca110a02bfa78cd39fa82656 (diff)
Remove all terminal-related code
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;