shithub: nc

Download patch

ref: ea023e111baf86c07fcb32ee0593ebf8906c9ed5
parent: ca2f76ab1ec0ade3f54e0d4cf2fc0d734a6f748f
author: phil9 <[email protected]>
date: Mon Dec 26 03:43:12 EST 2022

fix file list being drawn over border

--- a/dirpanel.c
+++ b/dirpanel.c
@@ -37,6 +37,7 @@
 	p->titler.max.y = p->titler.min.y + 2 + font->height + 2;
 	p->filesr = p->intr;
 	p->filesr.min.y = p->titler.max.y;
+	p->filesr.max.y -= 1;
 	p->nlines = Dy(p->filesr) / (font->height + 2);
 }