about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-07-15 23:54:21 +0100
committerJames Booth <boothj5@gmail.com>2014-07-15 23:54:21 +0100
commit5872c4b55451a84e1a76fd00d58fe49648d48964 (patch)
tree57bd20dd0fa3d3c37a15b0303f85cedf04e75d91
parentf8f02e8f1e1ad2e8170b32b0e2e0ff10895f9aea (diff)
parentafde9d770a94aa2684d6d40a7735a775b0122594 (diff)
downloadprofani-tty-5872c4b55451a84e1a76fd00d58fe49648d48964.tar.gz
Merge branch 'master' into winbuffers
-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);