summaryrefslogtreecommitdiff
path: root/build.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-22 15:54:56 -0500
committerpommicket <pommicket@gmail.com>2022-12-22 15:54:56 -0500
commit9d04dcb7ce389c96e2c3fa1906b8896e24e65012 (patch)
tree9e167663338ce49c66216b0e70510b7c0e8aa92f /build.c
parent7568add9317f2bad5f633e5c587c76b87175899f (diff)
make sure autocomplete is closed when buffer is switched
Diffstat (limited to 'build.c')
-rw-r--r--build.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/build.c b/build.c
index 6ec8daf..3ac0001 100644
--- a/build.c
+++ b/build.c
@@ -13,7 +13,7 @@ static void build_stop(Ted *ted) {
}
arr_clear(ted->build_queue);
if (ted->active_buffer == &ted->build_buffer) {
- ted->active_buffer = NULL;
+ ted_switch_to_buffer(ted, NULL);
ted_reset_active_buffer(ted);
}
}