aboutsummaryrefslogtreecommitdiff
path: root/patches/instantexit.patch
blob: 74ca39c69d19afd31c8e0ac059f5558bbc525a13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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();
 }