summaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'command.c')
-rw-r--r--command.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/command.c b/command.c
index bafb4f6..5f92719 100644
--- a/command.c
+++ b/command.c
@@ -281,8 +281,8 @@ void command_execute(Ted *ted, Command c, i64 argument) {
buffer = &ted->line_buffer;
ted_switch_to_buffer(ted, buffer);
buffer_select_all(buffer);
- } else if (ted->autocomplete.open) {
- autocomplete_select_cursor_completion(ted);
+ } else if (ted->autocomplete.open || ted->autocomplete.phantom) {
+ autocomplete_select_completion(ted);
} else if (buffer) {
if (buffer->selection)
buffer_indent_selection(buffer);