diff options
Diffstat (limited to 'patches/instantexit.patch')
-rw-r--r-- | patches/instantexit.patch | 17 |
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(); + } + |