summaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-02-16 12:33:11 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-02-16 12:33:11 -0500
commit824c4ff4be5a0bf55b6644fed06fcfe2248c4301 (patch)
tree0eb56394e769e23005a9f03ffea0557c2577e542 /command.c
parent4bde24cb63313f636ac72b449f54d68515efe485 (diff)
started getting :build to work
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;
}
}