shithub: riscv

Download patch

ref: 7f7c1516876a0afacca2822e3e083c79551ad92c
parent: ecb12c87187a37a74f77aff45ffece9f7e985658
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))