summaryrefslogtreecommitdiff
path: root/ted.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 /ted.c
parent7568add9317f2bad5f633e5c587c76b87175899f (diff)
make sure autocomplete is closed when buffer is switched
Diffstat (limited to 'ted.c')
-rw-r--r--ted.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ted.c b/ted.c
index 229935a..c9ac007 100644
--- a/ted.c
+++ b/ted.c
@@ -184,7 +184,7 @@ static void ted_reset_active_buffer(Ted *ted) {
ted_switch_to_buffer(ted, &ted->buffers[node->tabs[node->active_tab]]);
} else {
// there's nothing to set it to
- ted->active_buffer = NULL;
+ ted_switch_to_buffer(ted, NULL);
}
}