shithub: ham

Download patch

ref: ab870dad3e16da1d77020b570a51af977e674666
parent: 20e846aa929c8461a8138f17b81473b0d3690d75
author: kvik <kvik@a-b.xyz>
date: Mon Feb 3 17:45:48 EST 2020

Regain a bit of margin between text and the scroll bar

--- a/samterm/flayer.c
+++ b/samterm/flayer.c
@@ -65,8 +65,8 @@
 	rectclip(&r, lDrect);
 	l->entire = r;
 	l->scroll = insetrect(r, FLMARGIN);
-	r.min.x =
-	 l->scroll.max.x = r.min.x+FLMARGIN+FLSCROLLWID+(FLGAP-FLMARGIN);
+	l->scroll.max.x = r.min.x+FLMARGIN+FLSCROLLWID+(FLGAP-FLMARGIN);
+	r.min.x = l->scroll.max.x+4;
 	return r;
 }