summaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'command.c')
-rw-r--r--command.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/command.c b/command.c
index 0153c64..01a7a88 100644
--- a/command.c
+++ b/command.c
@@ -297,9 +297,18 @@ void command_execute(Ted *ted, Command c, i64 argument) {
menu_escape(ted);
} else if (ted->find) {
find_close(ted);
+ } else if (ted->build_shown) {
+ build_stop(ted);
} else if (buffer) {
buffer_disable_selection(buffer);
}
break;
+
+ case CMD_BUILD:
+ if (ted->building) {
+ build_stop(ted);
+ }
+ build_start(ted);
+ break;
}
}