projects
/
suckless
/
dmenu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3623cd
)
fixed ^U cursor support
author
Connor Lane Smith
<cls@lubutu.com>
Tue, 13 Apr 2010 20:14:45 +0000
(20:14 +0000)
committer
Connor Lane Smith
<cls@lubutu.com>
Tue, 13 Apr 2010 20:14:45 +0000
(20:14 +0000)
dmenu.c
patch
|
blob
|
history
diff --git
a/dmenu.c
b/dmenu.c
index 15a615262fb8c77bcdfdfc0082d2ca1d516d0af4..9f29c19380a0e31da4839ab0a39615ec2a8e0a69 100644
(file)
--- 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: