diff options
author | pommicket <pommicket@gmail.com> | 2022-12-30 12:42:32 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-12-30 12:42:32 -0500 |
commit | 66367583a3b57e37e9198838222f45d99e77d8ae (patch) | |
tree | 74764837b87f3d25e726265dbf3d6ae7cede3b7f /menu.c | |
parent | 65cbe00bc124bdc1bd83bcd42ad5fbed521412b2 (diff) |
definitions menu, but it's acting weird
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -23,7 +23,7 @@ static void menu_close_with_next(Ted *ted, Menu next) { *ted->ask_reload = 0; break; case MENU_GOTO_DEFINITION: - tag_selector_close(ted); + definitions_selector_close(ted); break; case MENU_GOTO_LINE: buffer_clear(&ted->line_buffer); @@ -77,7 +77,7 @@ void menu_open(Ted *ted, Menu menu) { assert(*ted->ask_reload); break; case MENU_GOTO_DEFINITION: - tag_selector_open(ted); + definitions_selector_open(ted); break; case MENU_GOTO_LINE: ted_switch_to_buffer(ted, &ted->line_buffer); @@ -238,7 +238,7 @@ static void menu_update(Ted *ted) { } break; case MENU_GOTO_DEFINITION: { - char *chosen_tag = tag_selector_update(ted); + char *chosen_tag = definitions_selector_update(ted); if (chosen_tag) { menu_close(ted); tag_goto(ted, chosen_tag); @@ -394,7 +394,7 @@ static void menu_render(Ted *ted) { file_selector_render(ted, fs); } break; case MENU_GOTO_DEFINITION: { - tag_selector_render(ted, rect4(x1, y1, x2, y2)); + definitions_selector_render(ted, rect4(x1, y1, x2, y2)); } break; case MENU_GOTO_LINE: { float menu_height = char_height + 2 * padding; |