summaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-30 23:39:27 -0500
committerpommicket <pommicket@gmail.com>2022-12-30 23:39:27 -0500
commit25f6cd6f5ffb9ff34d9e22c38e9d72cdadce2dc9 (patch)
tree7f731a4098bd08fb0a301b3dfad7159a1a589374 /command.c
parent43bd0763959ecd8f8a835d09190b55ba6fab7d67 (diff)
basic find usages
Diffstat (limited to 'command.c')
-rw-r--r--command.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/command.c b/command.c
index 4f2d643..d49f57a 100644
--- a/command.c
+++ b/command.c
@@ -293,7 +293,9 @@ void command_execute(Ted *ted, Command c, i64 argument) {
if (ted->autocomplete.open)
autocomplete_prev(ted);
break;
-
+ case CMD_FIND_USAGES:
+ usages_find(ted);
+ break;
case CMD_UNDO:
if (buffer) buffer_undo(buffer, argument);
break;
@@ -395,6 +397,7 @@ void command_execute(Ted *ted, Command c, i64 argument) {
case CMD_ESCAPE:
definition_cancel_lookup(ted);
+ usages_cancel_lookup(ted);
if (*ted->error_shown) {
// dismiss error box
*ted->error_shown = '\0';