commit 6ec585fe59fb9fe0bab103f0777efd6ea0bc8410
parent 39a78b83c36c3c302a2b480c745bcae36681a0d8
Author: Martin Tournoij <martin@arp242.net>
Date: Sat, 12 Jan 2019 02:11:55 +1300
dmenu: remove case-insensitive patch
Actually, turns out that the fuzzymatch patch supports this now, making
this one redundant. See commit ea4dd26, where it was introduced.
Diffstat:
2 files changed, 0 insertions(+), 32 deletions(-)
diff --git a/tools.suckless.org/dmenu/patches/case-insensitive/dmenu-caseinsensitive-20161201-e90b88e.diff b/tools.suckless.org/dmenu/patches/case-insensitive/dmenu-caseinsensitive-20161201-e90b88e.diff
@@ -1,14 +0,0 @@
-diff -up dmenu/dmenu.c dmenu-icase/dmenu.c
---- dmenu/dmenu.c 2016-12-01 02:51:31.642969377 -0600
-+++ dmenu-icase/dmenu.c 2016-12-01 02:51:53.889635972 -0600
-@@ -296,8 +296,8 @@ fuzzymatch(void)
- sidx = eidx = -1;
- /* walk through item text */
- for (i = 0; i < itext_len && (c = item->text[i]); i++) {
-- /* fuzzy match pattern */
-- if (text[pidx] == c) {
-+ /* case-insensitive fuzzy match pattern */
-+ if (tolower(text[pidx]) == c || toupper(text[pidx]) == c) {
- if (sidx == -1)
- sidx = i;
- pidx++;
diff --git a/tools.suckless.org/dmenu/patches/case-insensitive/index.md b/tools.suckless.org/dmenu/patches/case-insensitive/index.md
@@ -1,18 +0,0 @@
-case-insensitive
-================
-
-Description
------------
-This patch adds support for case-insensitive matching the fuzzymatch patch.
-
-dmenu already comes with the `-i` switch for regular case-insensitive matching.
-
-Download
---------
-
-* [dmenu-caseinsensitive-20161201-e90b88e.diff](dmenu-caseinsensitive-20161201-e90b88e.diff)
-
-Authors
-------
-
-* fengshaun