Skip to content

Commit

Permalink
dmenu: enable fuzzy search only if -F flag is given
Browse files Browse the repository at this point in the history
  • Loading branch information
fsareshwala committed Jun 24, 2020
1 parent 6a572da commit 19625b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config.def.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* 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 */
static int centered = 0; /* -c option; centers dmenu on screen */
static int min_width = 500; /* minimum width when centered */
/* -fn option overrides fonts[0]; default X11 font or font set */
Expand Down
2 changes: 1 addition & 1 deletion dmenu.c
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,7 @@ main(int argc, char *argv[])
else if (!strcmp(argv[i], "-c")) /* centers dmenu on screen */
centered = 1;
else if (!strcmp(argv[i], "-F")) /* fuzzy item matching */
fuzzy = 0;
fuzzy = 1;
else if (!strcmp(argv[i], "-i")) { /* case-insensitive item matching */
fstrncmp = strncasecmp;
fstrstr = cistrstr;
Expand Down

0 comments on commit 19625b6

Please sign in to comment.