--- dmenu-fuzzymatch-4.9.diff.orig 2022-08-21 22:26:54.107429572 -0700 +++ dmenu-fuzzymatch-4.9.diff 2022-09-20 17:37:18.651570582 -0700 @@ -17,8 +17,10 @@ /* Default settings; can be overriden by command line. */ static int topbar = 1; /* -b option; if 0, dmenu appears at bottom */ -+static int fuzzy = 1; /* -F option; if 0, dmenu doesn't use fuzzy matching */ + ++static int fuzzy = 0; /* -F option; if 0, dmenu doesn't use fuzzy matching */ /* -fn option overrides fonts[0]; default X11 font or font set */ + static char font[] = "monospace:size=10"; static const char *fonts[] = { "monospace:size=10" diff --git a/config.mk b/config.mk @@ -153,8 +155,8 @@ topbar = 0; else if (!strcmp(argv[i], "-f")) /* grabs keyboard before reading stdin */ fast = 1; -+ else if (!strcmp(argv[i], "-F")) /* grabs keyboard before reading stdin */ -+ fuzzy = 0; ++ else if (!strcmp(argv[i], "-F")) /* fuzzy matching */ ++ fuzzy = 1; else if (!strcmp(argv[i], "-i")) { /* case-insensitive item matching */ fstrncmp = strncasecmp; fstrstr = cistrstr; .