summaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-06 11:34:42 -0500
committerpommicket <pommicket@gmail.com>2023-01-06 11:34:42 -0500
commit268aba5dde93b67df5f5bd137141eeb177485685 (patch)
tree7971dd7fa565ff9efb3ee6857b68164a317a92ab /command.c
parentda244a2bfb1e1139e772e272166fc0ecd4898ad4 (diff)
start phantom completions
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);