git: 9front

Download patch

ref: 0810c9689cdab52e8ab417050b660dd9eccf4647
parent: 7e41f146ff7029bf1a045bfa1a0410782ca16d70
author: Sigrid <ftrvxmtrx@gmail.com>
date: Sun Dec 6 07:17:05 EST 2020

rio: allow windows as small as one line of text, still scrollable

--- a/sys/src/cmd/rio/wctl.c
+++ b/sys/src/cmd/rio/wctl.c
@@ -95,7 +95,7 @@
 		return 0;
 	if(Dy(r) > BIG*Dy(screen->r))
 		return 0;
-	if(Dx(r) < 100 || Dy(r) < 3*font->height)
+	if(Dx(r) < 100 || Dy(r) < 3*Borderwidth+font->height)
 		return 0;
 	/* window must be on screen */
 	if(!rectXrect(screen->r, r))
--