1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-10-13 20:13:38 -04:00

Added ": " after nick autocomplete when start of message

This commit is contained in:
James Booth 2014-07-15 23:52:08 +01:00
parent d02c8af532
commit afde9d770a

View File

@ -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);