diff options
author | cflip <cflip@cflip.net> | 2023-01-11 11:21:41 -0700 |
---|---|---|
committer | cflip <cflip@cflip.net> | 2023-01-11 11:21:41 -0700 |
commit | 0324dda2cc779bcd6d3eb425216e29b37a9a95ed (patch) | |
tree | 84fb7faab49b0773339803cb893da0c958f9d7e8 /file.c | |
parent | 61c387397d03c479ca110a02bfa78cd39fa82656 (diff) |
Remove all terminal-related code
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |