From 7b3c0c1530fe0cafa8e0937833fa925086253c87 Mon Sep 17 00:00:00 2001 From: cflip Date: Thu, 19 Jan 2023 10:10:45 -0700 Subject: Clean up main function a bit This still had some commented out leftovers from the old event loop, and the default window size has also been adjusted. --- main.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/main.c b/main.c index 205d580..94e4202 100644 --- a/main.c +++ b/main.c @@ -4,7 +4,7 @@ int main(int argc, char** argv) { - window_init("Text editor", 40, 80); + window_init("Text editor", 28, 80); struct editor_state editor; init_editor(&editor); @@ -13,12 +13,10 @@ int main(int argc, char** argv) editor_open(&editor, argv[1]); } - editor_set_status_message(&editor, "HELP: Ctrl+Q = quit, Ctrl+S = save, Ctrl+F = find"); + editor_set_status_message(&editor, "HELP: Ctrl+Q: quit, Ctrl+S: save"); while (window_handle_event(&editor)) { window_redraw(&editor); - // editor_refresh_screen(&editor); - // editor_process_keypress(&editor); } window_destroy(); -- cgit v1.2.3