ref: 396fe6a9f2f224c384935fec4826542a1c7aa816
parent: f4d1412732c0d8670ab6e6a33aa7cc7cc8b3d5c2
author: Ori Bernstein <[email protected]>
date: Sun Dec 27 11:18:05 EST 2020
composition: fix invoking subprograms (thansk daniel moch) This patch fixes a copy paste error where we where we would drop a message with flag 2 on it, instead of returning it. In old code, we did not coalesce messages with flags, so forwarding the flagged message would cause a duplicate event to be sent. We fixed that a while ago, but this snippeg lingered, dropping messages and making it impossible to middle click on '|fmt' or similar.
--- a/comp.c
+++ b/comp.c
@@ -142,7 +142,7 @@
p->fn(c, &f[1], nf - 1);
break;
}
- if(p->name == nil && !(ev.flags & 0x2))
+ if(p->fn == nil)
winreturn(c, &ev);
break;
break;