1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Merge branch 'master' into inp-utf8

This commit is contained in:
James Booth 2015-01-16 23:39:34 +00:00
commit 4ac11ddcd6

View File

@ -573,14 +573,12 @@ _handle_edit(int key_type, const wint_t ch)
if ((strncmp(input, "/", 1) != 0) && (ui_current_win_type() == WIN_MUC)) {
char *result = muc_autocomplete(input);
if (result) {
cons_debug("ac result = %s", result);
inp_replace_input(result);
free(result);
}
} else if (strncmp(input, "/", 1) == 0) {
char *result = cmd_autocomplete(input);
if (result) {
cons_debug("ac result = %s", result);
inp_replace_input(result);
free(result);
}
@ -802,4 +800,4 @@ _printable(const wint_t ch)
bytes[utf_len] = '\0';
gunichar unichar = g_utf8_get_char(bytes);
return g_unichar_isprint(unichar) && (ch != KEY_MOUSE);
}
}