diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-01-18 16:37:51 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-01-18 16:37:51 -0500 |
commit | a3adbe5ea6015a76a3df84ee5942b89fbb762947 (patch) | |
tree | 712d0fdfaf23818ebf2b361306dbb9d4452e6540 /ted-base.c | |
parent | 37102a766e1913cd0548a981e5c601852ae47963 (diff) |
opening files kinda working
Diffstat (limited to 'ted-base.c')
-rw-r--r-- | ted-base.c | 13 |
1 files changed, 2 insertions, 11 deletions
@@ -80,14 +80,5 @@ static void ted_load_font(Ted *ted) { } } -static void ted_menu_open(Ted *ted, Menu menu) { - ted->menu = menu; - ted->prev_active_buffer = ted->active_buffer; - ted->active_buffer = NULL; -} - -static void ted_menu_close(Ted *ted, bool restore_prev_active_buffer) { - ted->menu = MENU_NONE; - if (restore_prev_active_buffer) ted->active_buffer = ted->prev_active_buffer; - ted->prev_active_buffer = NULL; -} +static void menu_open(Ted *ted, Menu menu); +static void menu_close(Ted *ted, bool restore_prev_active_buffer); |