summaryrefslogtreecommitdiff
path: root/ted.c
diff options
context:
space:
mode:
Diffstat (limited to 'ted.c')
-rw-r--r--ted.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ted.c b/ted.c
index 325755f..cc9eb06 100644
--- a/ted.c
+++ b/ted.c
@@ -103,6 +103,7 @@ static void ted_load_fonts(Ted *ted) {
// you can pass NULL to buffer to make it so no buffer is active.
void ted_switch_to_buffer(Ted *ted, TextBuffer *buffer) {
ted->active_buffer = buffer;
+ ted->autocomplete = false;
if (ted->find) find_update(ted, true);
if (buffer >= ted->buffers && buffer < ted->buffers + TED_MAX_BUFFERS) {