summaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-20 20:39:43 -0500
committerpommicket <pommicket@gmail.com>2022-12-20 20:39:43 -0500
commit885df8890e537383df71f8f828444d6c5cce0243 (patch)
tree469388524c6738c3c44d9ee45c5d114b6ed0cb44 /command.c
parentd3375f02cfed99ed40c28631e62654af23817729 (diff)
more completion
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 b6f3195..81a712c 100644
--- a/command.c
+++ b/command.c
@@ -264,13 +264,13 @@ void command_execute(Ted *ted, Command c, i64 argument) {
break;
case CMD_AUTOCOMPLETE:
if (ted->autocomplete)
- ++ted->autocomplete_cursor;
+ autocomplete_next(ted);
else
autocomplete_open(ted);
break;
case CMD_AUTOCOMPLETE_BACK:
if (ted->autocomplete)
- --ted->autocomplete_cursor;
+ autocomplete_prev(ted);
break;
case CMD_UNDO: