about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/muc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/muc.c b/src/muc.c
index 95f8e730..d623da2d 100644
--- a/src/muc.c
+++ b/src/muc.c
@@ -608,6 +608,9 @@ muc_autocomplete(char *input, int *size)
     if (result != NULL) {
         GString *replace_with = g_string_new(chat_room->autocomplete_prefix);
         g_string_append(replace_with, result);
+        if (last_space == NULL || (*(last_space+1) == '\0')) {
+            g_string_append(replace_with, ": ");
+        }
         ui_replace_input(input, replace_with->str, size);
         g_string_free(replace_with, TRUE);
         g_free(result);