summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
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);