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:
2b31952
)
limit direction keys in vline
author
Connor Lane Smith
<cls@lubutu.com>
Tue, 15 Nov 2011 19:32:39 +0000
(20:32 +0100)
committer
Connor Lane Smith
<cls@lubutu.com>
Tue, 15 Nov 2011 19:32:39 +0000
(20:32 +0100)
dmenu.c
patch
|
blob
|
history
diff --git
a/dmenu.c
b/dmenu.c
index d0e27da4f95d686d64dc5c0efb907e78230acda3..99db24e74e933fab04c06cc31564f3c711ee6f80 100644
(file)
--- a/
dmenu.c
+++ b/
dmenu.c
@@
-328,6
+328,8
@@
keypress(XKeyEvent *ev) {
cursor = nextrune(-1);
break;
}
+ if(lines > 0)
+ return;
/* fallthrough */
case XK_Up:
if(sel && sel->left && (sel = sel->left)->right == curr) {
@@
-356,6
+358,8
@@
keypress(XKeyEvent *ev) {
cursor = nextrune(+1);
break;
}
+ if(lines > 0)
+ return;
/* fallthrough */
case XK_Down:
if(sel && sel->right && (sel = sel->right) == next) {