diff options
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); |