ref: 1e251253cd042dfe9a9392d56dfaf59989df5302
parent: 04eee6ee86b9f7eafcbbbcd4312a1c1faa38fc7a
author: Aidan K. Wiggins <akw@oneiri.one>
date: Mon Apr 28 16:59:18 EDT 2025
Don't center() in inmsg(). Bad Things Happen when we try to force I/O in the middle of processing a message. This isolates Torigin as being unused in the samhost for now.
--- a/samterm/mesg.c
+++ b/samterm/mesg.c
@@ -224,7 +224,7 @@
for(i = 0; i < NL; i++){
lp = &cmd.l[i];
if(lp->textfn && l > lp->origin+lp->f.nchars)
- center(lp, l >= 0? l: lp->p1, 0);
+ horigin(m, l >= 0? l: lp->p1);
}
break;
@@ -561,7 +561,7 @@
Flayer *l = &t->l[t->front];
if(p0 < l->origin || p0-l->origin > l->f.nchars*9/10)
- outTsls(Torigin, m, p0, l->width);
+ horigin(m, p0);
}
void
--
⑨