summaryrefslogtreecommitdiff
path: root/build.c
diff options
context:
space:
mode:
Diffstat (limited to 'build.c')
-rw-r--r--build.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/build.c b/build.c
index ba85cdd..cca1700 100644
--- a/build.c
+++ b/build.c
@@ -12,6 +12,10 @@ static void build_stop(Ted *ted) {
free(*cmd);
}
arr_clear(ted->build_queue);
+ if (ted->active_buffer == &ted->build_buffer) {
+ ted->active_buffer = NULL;
+ ted_reset_active_buffer(ted);
+ }
}
// call before adding anything to the build queue