9front - general discussion about 9front
 help / color / mirror / Atom feed
* [9front] three small changes in acme from plan9port
@ 2021-04-09  5:18 Xiao-Yong Jin
  2021-04-15  3:30 ` ori
  0 siblings, 1 reply; 2+ messages in thread
From: Xiao-Yong Jin @ 2021-04-09  5:18 UTC (permalink / raw)
  To: 9front

origin:

https://github.com/9fans/plan9port/pull/493
https://github.com/9fans/plan9port/pull/489
https://github.com/9fans/plan9port/pull/461

hg diff follows:

diff -r 303fbe43c06d sys/src/cmd/acme/cols.c
--- a/sys/src/cmd/acme/cols.c	Fri Apr 09 03:18:53 2021 +0200
+++ b/sys/src/cmd/acme/cols.c	Thu Apr 08 23:50:06 2021 -0500
@@ -208,8 +208,8 @@
 			r1.max.y = r.max.y;
 		else {
 			r1.max.y = r1.min.y;
-			if(new > 0 && old > 0 && Dy(w->r) > Border+font->height)
-				r1.max.y += (Dy(w->r)-Border-font->height)*new/old + Border + font->height;
+			if(new > 0 && old > 0 && Dy(w->r) > font->height)
+				r1.max.y += (Dy(w->r)-font->height)*new/old + Border + font->height;
 		}
 		r2 = r1;
 		r2.max.y = r2.min.y+Border;
@@ -422,7 +422,7 @@
 		}
 		if(j < c->nw-1){	/* no border on last window */
 			r.min.y = v->r.max.y;
-			r.max.y += Border;
+			r.max.y = r.min.y + Border;
 			draw(screen, r, display->black, nil, ZP);
 		}
 		y1 = r.max.y;
diff -r 303fbe43c06d sys/src/cmd/acme/text.c
--- a/sys/src/cmd/acme/text.c	Fri Apr 09 03:18:53 2021 +0200
+++ b/sys/src/cmd/acme/text.c	Thu Apr 08 23:50:06 2021 -0500
@@ -664,6 +664,7 @@
 	uint q0, q1;
 	int nnb, nb, n, i;
 	int nr;
+	Rune rr;
 	Rune *rp;
 	Text *u;
 
@@ -818,10 +819,10 @@
 			nr = 0;
 			rp[nr++] = r;
 			for(i=0; i<nnb; i++){
-				r = textreadc(t, t->q0-nnb+i);
-				if(r != ' ' && r != '\t')
+				rr = textreadc(t, t->q0-nnb+i);
+				if(rr != ' ' && rr != '\t')
 					break;
-				rp[nr++] = r;
+				rp[nr++] = rr;
 			}
 		}
 		break; /* fall through to normal code */


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [9front] three small changes in acme from plan9port
  2021-04-09  5:18 [9front] three small changes in acme from plan9port Xiao-Yong Jin
@ 2021-04-15  3:30 ` ori
  0 siblings, 0 replies; 2+ messages in thread
From: ori @ 2021-04-15  3:30 UTC (permalink / raw)
  To: 9front

Quoth Xiao-Yong Jin <meta.jxy@gmail.com>:
> origin:
> 
> https://github.com/9fans/plan9port/pull/493
> https://github.com/9fans/plan9port/pull/489
> https://github.com/9fans/plan9port/pull/461
> 


Looks good, committed.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-04-15  8:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-09  5:18 [9front] three small changes in acme from plan9port Xiao-Yong Jin
2021-04-15  3:30 ` ori

9front - general discussion about 9front

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/9front

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 9front 9front/ http://inbox.vuxu.org/9front \
		9front@9front.org
	public-inbox-index 9front

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.9front


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git