summaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-02-07 19:08:17 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-02-07 19:08:17 -0500
commite802f33329f5c9c2a0630693d42c737d4b75b409 (patch)
treef8be266956a39882c6aa53b978ce25ff9b3dfdef /command.c
parent4bfae2f646237d21d2ab2714241fe5273759526c (diff)
improved text rendering, started find
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