summaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'command.c')
-rw-r--r--command.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/command.c b/command.c
index 65d2072..cce923d 100644
--- a/command.c
+++ b/command.c
@@ -104,6 +104,7 @@ static CommandName command_names[] = {
{"macro-execute", CMD_MACRO_EXECUTE},
{"increment-number", CMD_INCREMENT_NUMBER},
{"decrement-number", CMD_DECREMENT_NUMBER},
+ {"rename-symbol", CMD_RENAME_SYMBOL},
};
static_assert_if_possible(arr_count(command_names) == CMD_COUNT)
@@ -679,5 +680,9 @@ void command_execute_ex(Ted *ted, Command c, CommandArgument full_argument, Comm
case CMD_MACRO_EXECUTE:
macro_execute(ted, (u32)argument);
break;
+ case CMD_RENAME_SYMBOL:
+ if (buffer && buffer_lsp(buffer))
+ menu_open(ted, MENU_RENAME_SYMBOL);
+ break;
}
}