diff options
author | Connor Lane Smith <cls@lubutu.com> | 2011-11-15 20:32:39 +0100 |
---|---|---|
committer | Connor Lane Smith <cls@lubutu.com> | 2011-11-15 20:32:39 +0100 |
commit | ebd94a6c00e0726d271d4f0c88ec67b4e290b1bd (patch) | |
tree | 5829d672fd8023bf8dd186b83705ad9956bfe17f /dmenu.c | |
parent | 2b31952731bc1c15d9a9521579b7609d50a65f01 (diff) | |
download | dmenu-ebd94a6c00e0726d271d4f0c88ec67b4e290b1bd.tar.gz dmenu-ebd94a6c00e0726d271d4f0c88ec67b4e290b1bd.tar.bz2 dmenu-ebd94a6c00e0726d271d4f0c88ec67b4e290b1bd.zip |
limit direction keys in vline
Diffstat (limited to 'dmenu.c')
-rw-r--r-- | dmenu.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) { |