summaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'command.c')
-rw-r--r--command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/command.c b/command.c
index ce447ed..b6f3195 100644
--- a/command.c
+++ b/command.c
@@ -377,7 +377,7 @@ void command_execute(Ted *ted, Command c, i64 argument) {
// dismiss error box
*ted->error_shown = '\0';
} else if (ted->autocomplete) {
- ted->autocomplete = false;
+ autocomplete_close(ted);
} else if (ted->menu) {
menu_escape(ted);
} else {