[hackers] [dmenu] limit direction keys in vline || Connor Lane Smith
changeset: 462:89b3b8cc0f3d
tag: tip
user: Connor Lane Smith <cls_AT_lubutu.com>
date: Tue Nov 15 20:32:39 2011 +0100
files: dmenu.c
description:
limit direction keys in vline
diff -r 6a0f9427bc11 -r 89b3b8cc0f3d dmenu.c
--- a/dmenu.c Mon Nov 14 20:02:16 2011 +0100
+++ b/dmenu.c Tue Nov 15 20:32:39 2011 +0100
_AT_@ -328,6 +328,8 @@
cursor = nextrune(-1);
break;
}
+ if(lines > 0)
+ return;
/* fallthrough */
case XK_Up:
if(sel && sel->left && (sel = sel->left)->right == curr) {
_AT_@ -356,6 +358,8 @@
cursor = nextrune(+1);
break;
}
+ if(lines > 0)
+ return;
/* fallthrough */
case XK_Down:
if(sel && sel->right && (sel = sel->right) == next) {
Received on Tue Nov 15 2011 - 20:33:10 CET
This archive was generated by hypermail 2.3.0
: Tue Nov 15 2011 - 20:36:05 CET