aboutsummaryrefslogtreecommitdiff
path: root/dmenu.c
diff options
context:
space:
mode:
authorConnor Lane Smith <cls@lubutu.com>2011-07-06 13:40:36 +0100
committerConnor Lane Smith <cls@lubutu.com>2011-07-06 13:40:36 +0100
commit5867c533909b8b6fd8318f307460e894ca8fee3b (patch)
treea3b75d452495584d331ccd87c8f974670c7e561e /dmenu.c
parent34a816f87d382de2891ba2ed734e2de48ed0b357 (diff)
downloaddmenu-5867c533909b8b6fd8318f307460e894ca8fee3b.tar.gz
dmenu-5867c533909b8b6fd8318f307460e894ca8fee3b.tar.bz2
dmenu-5867c533909b8b6fd8318f307460e894ca8fee3b.zip
simpler vline
Diffstat (limited to 'dmenu.c')
-rw-r--r--dmenu.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/dmenu.c b/dmenu.c
index 9b57565..aa9254f 100644
--- a/dmenu.c
+++ b/dmenu.c
@@ -330,8 +330,7 @@ keypress(XKeyEvent *ev) {
cursor = nextrune(-1);
break;
}
- else if(lines > 0)
- return;
+ /* fallthrough */
case XK_Up:
if(sel && sel->left && (sel = sel->left)->right == curr) {
curr = prev;
@@ -359,8 +358,7 @@ keypress(XKeyEvent *ev) {
cursor = nextrune(+1);
break;
}
- else if(lines > 0)
- return;
+ /* fallthrough */
case XK_Down:
if(sel && sel->right && (sel = sel->right) == next) {
curr = next;