summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrafa_99 <rafa99@protonmail.com>2020-09-02 18:03:06 +0100
committerrafa_99 <rafa99@protonmail.com>2020-09-02 18:03:06 +0100
commitb1c02f8ed0a0761d4891fac226435a8737d3311b (patch)
tree6701c79bd63163c85c85998af66170fb85a4935e
parent3750669e681594c2ef2281c673f87f7cc6aea5a3 (diff)
Revert "Case Insensitive Patch"
This reverts commit 0f2d5ec20afe20537c0a9273c175494a3ea86959.
-rw-r--r--dmenu.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/dmenu.c b/dmenu.c
index d934858..f0c3c6f 100644
--- a/dmenu.c
+++ b/dmenu.c
@@ -55,9 +55,8 @@ static Clr *scheme[SchemeLast];
#include "config.h"
-static char * cistrstr(const char *s, const char *sub);
-static int (*fstrncmp)(const char *, const char *, size_t) = strncasecmp;
-static char *(*fstrstr)(const char *, const char *) = cistrstr;
+static int (*fstrncmp)(const char *, const char *, size_t) = strncmp;
+static char *(*fstrstr)(const char *, const char *) = strstr;
static void
appenditem(struct item *item, struct item **list, struct item **last)
@@ -712,9 +711,9 @@ main(int argc, char *argv[])
topbar = 0;
else if (!strcmp(argv[i], "-f")) /* grabs keyboard before reading stdin */
fast = 1;
- else if (!strcmp(argv[i], "-s")) { /* case-sensitive item matching */
- fstrncmp = strncmp;
- fstrstr = strstr;
+ else if (!strcmp(argv[i], "-i")) { /* case-insensitive item matching */
+ fstrncmp = strncasecmp;
+ fstrstr = cistrstr;
} else if (i + 1 == argc)
usage();
/* these options take one argument */