From b3932693ee424e6c2923ab7286b02ef175265467 Mon Sep 17 00:00:00 2001 From: justsaumit Date: Wed, 2 Mar 2022 09:51:54 +0530 Subject: instant patch (-n) --- dmenu.c.rej | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 dmenu.c.rej (limited to 'dmenu.c.rej') diff --git a/dmenu.c.rej b/dmenu.c.rej deleted file mode 100644 index 67eb339..0000000 --- a/dmenu.c.rej +++ /dev/null @@ -1,22 +0,0 @@ ---- dmenu.c -+++ dmenu.c -@@ -643,7 +650,7 @@ setup(void) - static void - usage(void) - { -- fputs("usage: dmenu [-bfiv] [-l lines] [-p prompt] [-fn font] [-m monitor]\n" -+ fputs("usage: dmenu [-bfinv] [-l lines] [-p prompt] [-fn font] [-m monitor]\n" - " [-nb color] [-nf color] [-sb color] [-sf color] [-w windowid]\n", stderr); - exit(1); - } -@@ -666,7 +673,9 @@ main(int argc, char *argv[]) - else if (!strcmp(argv[i], "-i")) { /* case-insensitive item matching */ - fstrncmp = strncasecmp; - fstrstr = cistrstr; -- } else if (i + 1 == argc) -+ } else if (!strcmp(argv[i], "-n")) /* instant select only match */ -+ instant = 1; -+ else if (i + 1 == argc) - usage(); - /* these options take one argument */ - else if (!strcmp(argv[i], "-l")) /* number of lines in vertical list */ -- cgit v1.2.3