summaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2025-09-29 13:29:56 -0400
committerpommicket <pommicket@gmail.com>2025-09-29 15:29:51 -0400
commit6c4baeebd88352399059a8df8d38ebe3511588ea (patch)
tree98db7bb4f36a47f8f9ac5a53dcb06e8cd19cf762 /command.c
parentec03a105ce7a6e396cfd287cbfe902d65bac1474 (diff)
Start code actions
Diffstat (limited to 'command.c')
-rw-r--r--command.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/command.c b/command.c
index 3b647f4..66ae4bb 100644
--- a/command.c
+++ b/command.c
@@ -111,6 +111,7 @@ static CommandName command_names[] = {
{"indent-with-tabs", CMD_INDENT_WITH_TABS},
{"set-tab-width", CMD_SET_TAB_WIDTH},
{"debug-print-undo-history", CMD_DEBUG_PRINT_UNDO_HISTORY},
+ {"code-action", CMD_CODE_ACTION},
};
static_assert_if_possible(arr_count(command_names) == CMD_COUNT)
@@ -740,5 +741,8 @@ void command_execute_ex(Ted *ted, Command c, const CommandArgument *full_argumen
case CMD_DEBUG_PRINT_UNDO_HISTORY:
buffer_print_undo_history(buffer);
break;
+ case CMD_CODE_ACTION:
+ code_action_start(ted);
+ break;
}
}