aboutsummaryrefslogtreecommitdiffstats
path: root/dmenu-gridnav-5.0.diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dmenu-gridnav-5.0.diff32
1 files changed, 32 insertions, 0 deletions
diff --git a/dmenu-gridnav-5.0.diff b/dmenu-gridnav-5.0.diff
new file mode 100644
index 0000000..6a24207
--- /dev/null
+++ b/dmenu-gridnav-5.0.diff
@@ -0,0 +1,32 @@
+diff --git a/dmenu.c b/dmenu.c
+index 7361377..fcec79b 100644
+--- a/dmenu.c
++++ b/dmenu.c
+@@ -479,6 +502,27 @@ insert:
+ sel->out = 1;
+ break;
+ case XK_Right:
++ if (columns > 1) {
++ if (!sel)
++ return;
++ tmpsel = sel;
++ for (i = 0; i < lines; i++) {
++ if (!tmpsel->right || tmpsel->right->left != tmpsel) {
++ if (offscreen)
++ break;
++ return;
++ }
++ tmpsel = tmpsel->right;
++ if (tmpsel == next)
++ offscreen = 1;
++ }
++ sel = tmpsel;
++ if (offscreen) {
++ curr = next;
++ calcoffsets();
++ }
++ break;
++ }
+ if (text[cursor] != '\0') {
+ cursor = nextrune(+1);
+ break;