Hello!
I've tried to use dmenu to open URLs with surf and discovered that it
crashes with segfault when you hit return on a word which hasn't matches.
So I've made a patch, which you can find in attachment.
Patch tested with dmenu 6.0 sources.
--
Sincerely,
Anton
diff --git a/dmenu.c b/dmenu.c
index 463e022..a31288e 100644
--- a/dmenu.c
+++ b/dmenu.c
@@ -393,7 +393,9 @@ keypress(XKeyEvent *ev) {
ret = EXIT_SUCCESS;
running = False;
}
- sel->out = True;
+ if(sel) {
+ sel->out = True;
+ }
break;
case XK_Right:
if(text[cursor] != '\0') {