summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-04 13:49:01 -0500
committerpommicket <pommicket@gmail.com>2023-01-04 13:49:01 -0500
commit87b0da0d33d97abc0ba94ad18d988d370d09441b (patch)
tree741eb7c368bcbed02f245d84ff6b6285fb83cd4c /session.c
parent10d7f910e7b1cde3031ef27c851f9f7700d9b547 (diff)
some ted.h documentation
Diffstat (limited to 'session.c')
-rw-r--r--session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/session.c b/session.c
index 6202a08..4d01fe9 100644
--- a/session.c
+++ b/session.c
@@ -230,7 +230,7 @@ static void session_read_buffer(Ted *ted, FILE *fp) {
char filename[TED_PATH_MAX] = {0};
read_cstr(fp, filename, sizeof filename);
buffer_create(buffer, ted);
- if (!buffer_haserr(buffer)) {
+ if (!buffer_has_error(buffer)) {
if (*filename) {
if (!buffer_load_file(buffer, filename))
buffer_new_file(buffer, TED_UNTITLED);