mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 20:33:46 +02:00
parent
b8d748a248
commit
279db87d32
1 changed files with 14 additions and 0 deletions
|
|
@ -304,6 +304,20 @@ static int expand_key(const char *key, GSList **out)
|
|||
/* possibly beginning of keycombo */
|
||||
start = key;
|
||||
last_hyphen = FALSE;
|
||||
} else if (g_utf8_validate(key, -1, NULL)) {
|
||||
/* Assume we are looking at the start of a
|
||||
* multibyte sequence we will receive as-is,
|
||||
* so add it to the list as-is.
|
||||
*/
|
||||
const char *p, *end = g_utf8_next_char(key);
|
||||
for (p = key; p != end; p++)
|
||||
expand_out_char(*out, *p);
|
||||
expand_out_char(*out, '-');
|
||||
/* The for loop skips past the remaining character.
|
||||
* Nasty, I know...
|
||||
*/
|
||||
key = end - 1;
|
||||
last_hyphen = FALSE;
|
||||
} else {
|
||||
expand_out_char(*out, *key);
|
||||
expand_out_char(*out, '-');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue