diff options
author | Connor Lane Smith <cls@lubutu.com> | 2010-04-13 20:14:45 +0000 |
---|---|---|
committer | Connor Lane Smith <cls@lubutu.com> | 2010-04-13 20:14:45 +0000 |
commit | 09db46f54fa671728498e14e8711b20301b266b7 (patch) | |
tree | 1e82873bcf2c15399469272b66f7887b77934988 | |
parent | e3623cd7f24af660ef2b8cce89a232495d654237 (diff) |
fixed ^U cursor support
-rw-r--r-- | dmenu.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -414,8 +414,8 @@ kpress(XKeyEvent * e) { | |||
414 | break; | 414 | break; |
415 | case XK_u: | 415 | case XK_u: |
416 | case XK_U: | 416 | case XK_U: |
417 | memmove(text, text + cursor, sizeof text - cursor + 1); | ||
417 | cursor = 0; | 418 | cursor = 0; |
418 | text[0] = '\0'; | ||
419 | match(text); | 419 | match(text); |
420 | break; | 420 | break; |
421 | case XK_w: | 421 | case XK_w: |