summaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2025-09-30 10:42:13 -0400
committerpommicket <pommicket@gmail.com>2025-09-30 10:42:13 -0400
commit3a1af93e9c0f983da64070d3774596844c2a26e1 (patch)
tree65878feb922fcec4ae9f3cae4bbc1a5ee99d6cb9 /command.c
parent84da626a18ccc779aef4a178ee0097a93c959520 (diff)
Initial implementation of code actions
Diffstat (limited to 'command.c')
-rw-r--r--command.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/command.c b/command.c
index 66ae4bb..4cae9c8 100644
--- a/command.c
+++ b/command.c
@@ -641,6 +641,8 @@ void command_execute_ex(Ted *ted, Command c, const CommandArgument *full_argumen
*ted->message_shown = '\0';
} else if (autocomplete_is_open(ted)) {
autocomplete_close(ted);
+ } else if (code_action_is_open(ted)) {
+ code_action_close(ted);
} else if (menu_is_any_open(ted)) {
menu_escape(ted);
} else {
@@ -742,7 +744,7 @@ void command_execute_ex(Ted *ted, Command c, const CommandArgument *full_argumen
buffer_print_undo_history(buffer);
break;
case CMD_CODE_ACTION:
- code_action_start(ted);
+ code_action_open(ted);
break;
}
}