all repos — dmenu @ ebd94a6c00e0726d271d4f0c88ec67b4e290b1bd

my build of dmenu

limit direction keys in vline
Connor Lane Smith cls@lubutu.com
Tue, 15 Nov 2011 20:32:39 +0100
commit

ebd94a6c00e0726d271d4f0c88ec67b4e290b1bd

parent

2b31952731bc1c15d9a9521579b7609d50a65f01

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M dmenu.cdmenu.c

@@ -328,6 +328,8 @@ if(cursor > 0 && (!sel || !sel->left || lines > 0)) {

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 @@ if(text[cursor] != '\0') {

cursor = nextrune(+1); break; } + if(lines > 0) + return; /* fallthrough */ case XK_Down: if(sel && sel->right && (sel = sel->right) == next) {