From 09db46f54fa671728498e14e8711b20301b266b7 Mon Sep 17 00:00:00 2001 From: Connor Lane Smith Date: Tue, 13 Apr 2010 20:14:45 +0000 Subject: fixed ^U cursor support --- dmenu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dmenu.c') diff --git a/dmenu.c b/dmenu.c index 15a6152..9f29c19 100644 --- a/dmenu.c +++ b/dmenu.c @@ -414,8 +414,8 @@ kpress(XKeyEvent * e) { break; case XK_u: case XK_U: + memmove(text, text + cursor, sizeof text - cursor + 1); cursor = 0; - text[0] = '\0'; match(text); break; case XK_w: -- cgit v1.2.3-70-g09d2