xep-0308: Fix sending corrections for multiple words

This commit is contained in:
Michael Vetter
2020-02-12 14:45:26 +01:00
parent bc571a387d
commit 1072cdab0a
3 changed files with 7 additions and 4 deletions

View File

@@ -3765,8 +3765,9 @@ _correct_autocomplete(ProfWin *window, const char *const input, gboolean previou
return NULL;
}
GString *result_str = g_string_new("/correct ");
GString *result_str = g_string_new("/correct \"");
g_string_append(result_str, last_message);
g_string_append(result_str, "\"");
char *result = result_str->str;
g_string_free(result_str, FALSE);