git: 9front

Download patch

ref: fd8ba0462193e1b626b8279eb08d7f67168f659e
parent: db559da11714c717739e44b1ebe61415f926c686
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Sun Oct 20 18:38:35 EDT 2013

acme: attempt to fix tag lines collapsing to zero height on window move (issue 189)

we'r getting a rectangle taller than a single line from
coladd() which causes textresize() to collapse the tag
text to zero height.

should probably fix coladd() instead.

--- a/sys/src/cmd/acme/wind.c
+++ b/sys/src/cmd/acme/wind.c
@@ -184,7 +184,8 @@
 		w->taglines = wintaglines(w, r);
 		r1.max.y = min(r.max.y, r1.min.y + w->taglines*font->height);
 	}
-
+	if(Dy(r1) < font->height)
+		r1.max.y = r1.min.y+font->height;
 	y = r1.max.y;
 	if(!safe || !eqrect(w->tag.r, r1)){
 		textresize(&w->tag, r1);
--