summaryrefslogtreecommitdiff
path: root/editor.c
diff options
context:
space:
mode:
Diffstat (limited to 'editor.c')
-rw-r--r--editor.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/editor.c b/editor.c
index 14eada7..43a469a 100644
--- a/editor.c
+++ b/editor.c
@@ -28,8 +28,7 @@ void init_editor(struct editor_state* editor)
editor->status_message_time = 0;
editor->syntax = NULL;
- if (get_window_size(&editor->screen_rows, &editor->screen_cols) == -1)
- die("get_window_size");
+ window_get_size(&editor->screen_rows, &editor->screen_cols);
editor->screen_rows -= 2;
}