diff options
author | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2011-03-31 14:07:55 +0100 |
---|---|---|
committer | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2011-03-31 14:07:55 +0100 |
commit | f17f21752b37e1ee23ee85374a5269a90804cdd2 (patch) | |
tree | 39058ac1356de9a50048677b3fdf6bcb50f3e994 | |
parent | 5a6e289d23f230e7277480826a703342e97b71f9 (diff) | |
download | termo-f17f21752b37e1ee23ee85374a5269a90804cdd2.tar.gz termo-f17f21752b37e1ee23ee85374a5269a90804cdd2.tar.xz termo-f17f21752b37e1ee23ee85374a5269a90804cdd2.zip |
strfkey should fill in the utf8 member of a key struct if it's empty
-rw-r--r-- | termkey.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1001,6 +1001,8 @@ size_t termkey_strfkey(TermKey *tk, char *buffer, size_t len, TermKeyKey *key, T switch(key->type) { case TERMKEY_TYPE_UNICODE: + if(!key->utf8[0]) // In case of user-supplied key structures + fill_utf8(key); l = snprintf(buffer + pos, len - pos, "%s", key->utf8); break; case TERMKEY_TYPE_KEYSYM: |