diff options
Diffstat (limited to 'command.c')
-rw-r--r-- | command.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; } } |