diff options
| author | Connor Lane Smith <cls@lubutu.com> | 2011-07-06 13:40:36 +0100 | 
|---|---|---|
| committer | Connor Lane Smith <cls@lubutu.com> | 2011-07-06 13:40:36 +0100 | 
| commit | 5867c533909b8b6fd8318f307460e894ca8fee3b (patch) | |
| tree | a3b75d452495584d331ccd87c8f974670c7e561e | |
| parent | 34a816f87d382de2891ba2ed734e2de48ed0b357 (diff) | |
simpler vline
| -rw-r--r-- | dmenu.c | 6 | 
1 files changed, 2 insertions, 4 deletions
| @@ -330,8 +330,7 @@ keypress(XKeyEvent *ev) { | |||
| 330 | cursor = nextrune(-1); | 330 | cursor = nextrune(-1); | 
| 331 | break; | 331 | break; | 
| 332 | } | 332 | } | 
| 333 | else if(lines > 0) | 333 | /* fallthrough */ | 
| 334 | return; | ||
| 335 | case XK_Up: | 334 | case XK_Up: | 
| 336 | if(sel && sel->left && (sel = sel->left)->right == curr) { | 335 | if(sel && sel->left && (sel = sel->left)->right == curr) { | 
| 337 | curr = prev; | 336 | curr = prev; | 
| @@ -359,8 +358,7 @@ keypress(XKeyEvent *ev) { | |||
| 359 | cursor = nextrune(+1); | 358 | cursor = nextrune(+1); | 
| 360 | break; | 359 | break; | 
| 361 | } | 360 | } | 
| 362 | else if(lines > 0) | 361 | /* fallthrough */ | 
| 363 | return; | ||
| 364 | case XK_Down: | 362 | case XK_Down: | 
| 365 | if(sel && sel->right && (sel = sel->right) == next) { | 363 | if(sel && sel->right && (sel = sel->right) == next) { | 
| 366 | curr = next; | 364 | curr = next; | 
