From f17f21752b37e1ee23ee85374a5269a90804cdd2 Mon Sep 17 00:00:00 2001 From: Paul LeoNerd Evans Date: Thu, 31 Mar 2011 14:07:55 +0100 Subject: strfkey should fill in the utf8 member of a key struct if it's empty --- termkey.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/termkey.c b/termkey.c index 81b5133..881122e 100644 --- a/termkey.c +++ b/termkey.c @@ -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: -- cgit v1.2.3-70-g09d2