shithub: sam

Download patch

ref: f284cb0c80b6d73d4147c6e65ba259bfa440487d
parent: 2be253790b3f4e7f23f19a6af8948b9a07473395
author: Aidan K. Wiggins <akw@oneiri.one>
date: Sun Jan 26 14:47:42 EST 2025

Missed a condition.

--- a/samterm/mesg.c
+++ b/samterm/mesg.c
@@ -534,7 +534,6 @@
 	Rune *r;
 
 	p = bound(t, p);
-
 	if(!flprepare(l)){
 		l->origin = p;
 		return;
@@ -541,8 +540,6 @@
 	}
 
 	a = p - l->origin;
-	if(a > 0 && l->origin+f->nchars == t->rasp.nrunes && f->nlines == f->maxlines/3)
-		return;
 	if(a >= 0 && a < l->f.nchars)
 		frdelete(f, 0, a);
 	else if(a < 0 && -a < l->f.nchars){