summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConnor Lane Smith <cls@lubutu.com>2010-04-13 20:14:45 +0000
committerConnor Lane Smith <cls@lubutu.com>2010-04-13 20:14:45 +0000
commit09db46f54fa671728498e14e8711b20301b266b7 (patch)
tree1e82873bcf2c15399469272b66f7887b77934988
parente3623cd7f24af660ef2b8cce89a232495d654237 (diff)
fixed ^U cursor support
-rw-r--r--dmenu.c2
1 files changed, 1 insertions, 1 deletions
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: