From a9dbd787cfab9a0d4b913225e31ef4497dbfc535 Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Mon, 14 Nov 2016 18:42:41 +0100 Subject: Include in error mesg, what key failed to bind. --- source/x11-helper.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source/x11-helper.c') diff --git a/source/x11-helper.c b/source/x11-helper.c index 606ff0f8..a5c0e581 100644 --- a/source/x11-helper.c +++ b/source/x11-helper.c @@ -678,10 +678,11 @@ gboolean x11_parse_key ( const char *combo, unsigned int *mod, xkb_keysym_t *key g_free ( input_key ); if ( error_msg ) { - g_string_append_printf ( str, "Sorry, rofi cannot understand the key combination: %s\n", combo ); + char *name = g_markup_escape_text ( combo, -1 ); + g_string_append_printf ( str, "Cannot understand the key combination: %s\n", name ); g_string_append ( str, error_msg ); + g_free ( name ); g_free ( error_msg ); - g_string_append_c ( str, '\n' ); return FALSE; } *key = sym; -- cgit v1.2.3