summaryrefslogtreecommitdiff
path: root/build.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-03-26 15:50:07 -0400
committerpommicket <pommicket@gmail.com>2022-03-26 15:50:07 -0400
commit6617f77adbaeb0dc79c7b07f6ec3a107adb117db (patch)
treed35c0cea859ff0c3fe0bf178111a0abd59ef9ce2 /build.c
parent53ce10723f8d683dda4194fc969b4a8500b76b19 (diff)
fixed ctrl+w behavior with find/build
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