mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Added ": " after nick autocomplete when start of message
This commit is contained in:
parent
d02c8af532
commit
afde9d770a
@ -608,6 +608,9 @@ muc_autocomplete(char *input, int *size)
|
|||||||
if (result != NULL) {
|
if (result != NULL) {
|
||||||
GString *replace_with = g_string_new(chat_room->autocomplete_prefix);
|
GString *replace_with = g_string_new(chat_room->autocomplete_prefix);
|
||||||
g_string_append(replace_with, result);
|
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);
|
ui_replace_input(input, replace_with->str, size);
|
||||||
g_string_free(replace_with, TRUE);
|
g_string_free(replace_with, TRUE);
|
||||||
g_free(result);
|
g_free(result);
|
||||||
|
Loading…
Reference in New Issue
Block a user