[hackers] [dmenu][PATCH] fix a bug introduced by e2a2805 that that ignores composed characters

From: nzl <uruabi_AT_gmail.com>
Date: Thu, 15 Mar 2018 21:02:46 +0800

XmbLookupString may not return a keysym, but only a string for
composed characters.
---
 dmenu.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/dmenu.c b/dmenu.c
index 5e9c367..3a3f8e4 100644
--- a/dmenu.c
+++ b/dmenu.c
_AT_@ -387,12 +387,11 @@ keypress(XKeyEvent *ev)
 			return;
 		}
 	switch(ksym) {
+	case NoSymbol:
 	default:
 		if (!iscntrl(*buf))
 			insert(buf, len);
 		break;
-	case NoSymbol:
-		break;
 	case XK_Delete:
 		if (text[cursor] == '\0')
 			return;
-- 
2.15.1
Received on Thu Mar 15 2018 - 14:02:46 CET

This archive was generated by hypermail 2.3.0 : Thu Mar 15 2018 - 14:12:23 CET