diff options
author | terminaldweller <thabogre@gmail.com> | 2022-04-22 05:20:45 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2022-04-22 05:20:45 +0000 |
commit | 55ff6a17cd124806e30f27f5da7c5e976f6925e8 (patch) | |
tree | 7a4121545b42a8caa441adbd7f857fa918d49c45 /dmenu-gridnav-5.0.diff | |
parent | Initial commit (diff) | |
download | dmenu-55ff6a17cd124806e30f27f5da7c5e976f6925e8.tar.gz dmenu-55ff6a17cd124806e30f27f5da7c5e976f6925e8.zip |
initial commit
Diffstat (limited to 'dmenu-gridnav-5.0.diff')
-rw-r--r-- | dmenu-gridnav-5.0.diff | 32 |
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; |