commit ebd94a6c00e0726d271d4f0c88ec67b4e290b1bd from: Connor Lane Smith date: Tue Nov 15 19:32:39 2011 UTC limit direction keys in vline commit - 2b31952731bc1c15d9a9521579b7609d50a65f01 commit + ebd94a6c00e0726d271d4f0c88ec67b4e290b1bd blob - d0e27da4f95d686d64dc5c0efb907e78230acda3 blob + 99db24e74e933fab04c06cc31564f3c711ee6f80 --- dmenu.c +++ dmenu.c @@ -328,6 +328,8 @@ keypress(XKeyEvent *ev) { 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 @@ keypress(XKeyEvent *ev) { cursor = nextrune(+1); break; } + if(lines > 0) + return; /* fallthrough */ case XK_Down: if(sel && sel->right && (sel = sel->right) == next) {