From 5867c533909b8b6fd8318f307460e894ca8fee3b Mon Sep 17 00:00:00 2001 From: Connor Lane Smith Date: Wed, 6 Jul 2011 13:40:36 +0100 Subject: simpler vline --- dmenu.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'dmenu.c') 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; -- cgit v1.2.3-13-gbd6f