mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-28 14:36:22 +00:00
Merge branch 'master' into inp-utf8
This commit is contained in:
@@ -573,14 +573,12 @@ _handle_edit(int key_type, const wint_t ch)
|
|||||||
if ((strncmp(input, "/", 1) != 0) && (ui_current_win_type() == WIN_MUC)) {
|
if ((strncmp(input, "/", 1) != 0) && (ui_current_win_type() == WIN_MUC)) {
|
||||||
char *result = muc_autocomplete(input);
|
char *result = muc_autocomplete(input);
|
||||||
if (result) {
|
if (result) {
|
||||||
cons_debug("ac result = %s", result);
|
|
||||||
inp_replace_input(result);
|
inp_replace_input(result);
|
||||||
free(result);
|
free(result);
|
||||||
}
|
}
|
||||||
} else if (strncmp(input, "/", 1) == 0) {
|
} else if (strncmp(input, "/", 1) == 0) {
|
||||||
char *result = cmd_autocomplete(input);
|
char *result = cmd_autocomplete(input);
|
||||||
if (result) {
|
if (result) {
|
||||||
cons_debug("ac result = %s", result);
|
|
||||||
inp_replace_input(result);
|
inp_replace_input(result);
|
||||||
free(result);
|
free(result);
|
||||||
}
|
}
|
||||||
@@ -802,4 +800,4 @@ _printable(const wint_t ch)
|
|||||||
bytes[utf_len] = '\0';
|
bytes[utf_len] = '\0';
|
||||||
gunichar unichar = g_utf8_get_char(bytes);
|
gunichar unichar = g_utf8_get_char(bytes);
|
||||||
return g_unichar_isprint(unichar) && (ch != KEY_MOUSE);
|
return g_unichar_isprint(unichar) && (ch != KEY_MOUSE);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user