diff options
author | cflip <cflip@cflip.net> | 2023-01-19 10:10:45 -0700 |
---|---|---|
committer | cflip <cflip@cflip.net> | 2023-01-19 13:08:18 -0700 |
commit | 7b3c0c1530fe0cafa8e0937833fa925086253c87 (patch) | |
tree | ec8acfefe503f1b2ca25b70ebb39f468f9be1489 | |
parent | fe37b30e4a7321776621c91cacd3b58fb4247044 (diff) |
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.
-rw-r--r-- | main.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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(); |