From 7359d5e8a20073a9e40f92c6ad37d61ed5326859 Mon Sep 17 00:00:00 2001 From: tdro Date: Thu, 17 Mar 2022 22:07:02 -0400 Subject: Makefile: Add patches and shell environment --- patches/instantexit.patch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 patches/instantexit.patch (limited to 'patches/instantexit.patch') diff --git a/patches/instantexit.patch b/patches/instantexit.patch new file mode 100644 index 0000000..74ca39c --- /dev/null +++ b/patches/instantexit.patch @@ -0,0 +1,17 @@ +diff --git a/dmenu.c b/dmenu.c +index 4c841d8..2d14dba 100644 +--- a/dmenu.c ++++ b/dmenu.c +@@ -317,6 +317,12 @@ fuzzymatch(void) + free(fuzzymatches); + } + curr = sel = matches; ++ ++ if (matches == NULL) { ++ cleanup(); ++ exit(127); ++ } ++ + calcoffsets(); + } + -- cgit v1.2.3