summaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'command.c')
-rw-r--r--command.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/command.c b/command.c
index 2c43258..5c6ae29 100644
--- a/command.c
+++ b/command.c
@@ -251,6 +251,12 @@ void command_execute(Ted *ted, Command c, i64 argument) {
if (ted->active_node) node_tab_switch(ted, ted->active_node, argument);
break;
+ case CMD_FIND:
+ ted->find = true;
+ buffer_clear(&ted->find_buffer);
+ ted->active_buffer = &ted->find_buffer;
+ break;
+
case CMD_ESCAPE:
if (*ted->error_shown) {
// dismiss error box