ref: f65eb2dedb725585386b17e3f576a37f6854f32f
parent: 155d5bd828718252ce38b483a0928413d1bf87f3
author: Ori Bernstein <[email protected]>
date: Fri Nov 6 14:10:47 EST 2020
fix plumbing of files from nail Don't filter out files when returning events
--- a/mbox.c
+++ b/mbox.c
@@ -706,7 +706,7 @@
compose(a, nil, 0, 0);
else if(matchmesg(&mbox, ev->text))
mesgopen(ev->text, nil);
- else
+ else if((ev->flags & 0x2) == 0)
winreturn(&mbox, ev);
free(a);
break;
--- a/mesg.c
+++ b/mesg.c
@@ -378,7 +378,7 @@
compose(a, nil, 0, 0);
else if(matchmesg(m, ev.text))
mesgopen(ev.text, nil);
- else
+ else if((ev.flags & 0x2) == 0)
winreturn(m, &ev);
free(a);
break;
--- a/win.c
+++ b/win.c
@@ -6,13 +6,6 @@
#include "mail.h"
-enum {
- AFbuiltin = 1<<0,
- AFexpand = 1<<1,
- AFfilename = 1<<2,
- AFargbtn = 1<<3,
-};
-
static int
procrd(Biobufhdr *f, void *buf, long len)
{
@@ -82,8 +75,6 @@
void
winreturn(Win *w, Event *e)
{
- if(e->flags & (AFexpand|AFargbtn))
- return;
fprint(w->revent, "%c%c%d %d\n", e->action, e->type, e->q0, e->q1);
}