ref: d04a83c9a428290c40ecf86c4e7f3ac6c9155977
parent: 8328c8f5fdbf2c8a20865989900b98ed449068e7
author: Ori Bernstein <[email protected]>
date: Mon Nov 9 01:07:41 EST 2020
Return the right event in winreturn() (thanks deuteron)
--- a/mbox.c
+++ b/mbox.c
@@ -746,7 +746,7 @@
compose(a, nil, 0, 0);
else if(matchmesg(&mbox, ev->text))
mesgopen(ev->text, nil);
- else if((ev->flags & 0x2) == 0)
+ else if((ev->flags & 0x2) != 0)
winreturn(&mbox, ev);
free(a);
break;
--- a/mesg.c
+++ b/mesg.c
@@ -410,7 +410,7 @@
compose(a, nil, 0, 0);
else if(matchmesg(m, ev.text))
mesgopen(ev.text, nil);
- else if((ev.flags & 0x2) == 0)
+ else if((ev.flags & 0x2) != 0)
winreturn(m, &ev);
free(a);
break;