summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-30 14:21:35 -0500
committerpommicket <pommicket@gmail.com>2022-12-30 14:21:35 -0500
commit91fc9b10e1700b482b13af1d25d95d80085a9b79 (patch)
tree8873099c6de0cefe8304f1d04c7be349e3e189ab /menu.c
parent66367583a3b57e37e9198838222f45d99e77d8ae (diff)
go to definition
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/menu.c b/menu.c
index 139ae07..4c62768 100644
--- a/menu.c
+++ b/menu.c
@@ -238,12 +238,7 @@ static void menu_update(Ted *ted) {
}
break;
case MENU_GOTO_DEFINITION: {
- char *chosen_tag = definitions_selector_update(ted);
- if (chosen_tag) {
- menu_close(ted);
- tag_goto(ted, chosen_tag);
- free(chosen_tag);
- }
+ definitions_selector_update(ted);
} break;
case MENU_GOTO_LINE: {
char *contents = str32_to_utf8_cstr(buffer_get_line(line_buffer, 0));