Browse Source

simpler vline

master
Connor Lane Smith 13 years ago
parent
commit
5867c53390
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      dmenu.c

+ 2
- 4
dmenu.c View File

@ -330,8 +330,7 @@ keypress(XKeyEvent *ev) {
cursor = nextrune(-1); cursor = nextrune(-1);
break; break;
} }
else if(lines > 0)
return;
/* fallthrough */
case XK_Up: case XK_Up:
if(sel && sel->left && (sel = sel->left)->right == curr) { if(sel && sel->left && (sel = sel->left)->right == curr) {
curr = prev; curr = prev;
@ -359,8 +358,7 @@ keypress(XKeyEvent *ev) {
cursor = nextrune(+1); cursor = nextrune(+1);
break; break;
} }
else if(lines > 0)
return;
/* fallthrough */
case XK_Down: case XK_Down:
if(sel && sel->right && (sel = sel->right) == next) { if(sel && sel->right && (sel = sel->right) == next) {
curr = next; curr = next;


Loading…
Cancel
Save