aboutsummaryrefslogtreecommitdiff
path: root/patches/instantexit.patch
diff options
context:
space:
mode:
authortdro <tdro@users.noreply.github.com>2022-03-17 22:07:02 -0400
committertdro <tdro@users.noreply.github.com>2022-03-17 22:07:02 -0400
commit7359d5e8a20073a9e40f92c6ad37d61ed5326859 (patch)
tree7d76b1c0bedf6d919926adac2bdc730178d8ead6 /patches/instantexit.patch
parent3a505cebe8adab204e5619357e0bfe3f9f3a92ff (diff)
downloaddmenu-7359d5e8a20073a9e40f92c6ad37d61ed5326859.tar.gz
dmenu-7359d5e8a20073a9e40f92c6ad37d61ed5326859.tar.bz2
dmenu-7359d5e8a20073a9e40f92c6ad37d61ed5326859.zip
Makefile: Add patches and shell environment
Diffstat (limited to 'patches/instantexit.patch')
-rw-r--r--patches/instantexit.patch17
1 files changed, 17 insertions, 0 deletions
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();
+ }
+