about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2022-02-24 11:41:53 +0100
committerMichael Vetter <jubalh@iodoru.org>2022-02-24 11:41:53 +0100
commit144742cb701084cf143b7d996e05e3b3e5449758 (patch)
tree0c0a81e14d4de03c99741ef5e2b6aa60e0312161
parent423105085a90e706f34f9b4b2fb75169246bc71e (diff)
downloadprofani-tty-144742cb701084cf143b7d996e05e3b3e5449758.tar.gz
ox: add autocomplete for /ox announce
-rw-r--r--src/command/cmd_ac.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/command/cmd_ac.c b/src/command/cmd_ac.c
index 81597a2d..6d5c67db 100644
--- a/src/command/cmd_ac.c
+++ b/src/command/cmd_ac.c
@@ -2589,6 +2589,10 @@ _ox_autocomplete(ProfWin* window, const char* const input, gboolean previous)
         return found;
     }
 
+    if (strncmp(input, "/ox announce ", 13) == 0) {
+        return cmd_ac_complete_filepath(input, "/ox announce", previous);
+    }
+
     gboolean result;
     gchar** args = parse_args(input, 2, 3, &result);
     if ((strncmp(input, "/ox", 4) == 0) && (result == TRUE)) {