ref: 502f59cca510add6869a7b8b3c689baeee0ba9fd
parent: 87c8306193fc056112849da2adc5a051ca4e4173
author: mischief <mischief@offblast.org>
date: Wed Jan 8 16:32:27 EST 2014
winwatch: this is not about sanity. rows might be negative
--- a/sys/src/cmd/winwatch.c
+++ b/sys/src/cmd/winwatch.c
@@ -188,7 +188,7 @@
z = 0;
rows = (Dy(screen->r)-2*MARGIN+PAD)/(font->height+PAD);
- if(rows == 0)
+ if(rows <= 0)
rows = 1;
if(rows*cols < nwin || rows*cols >= nwin*2){ncols = nwin <= 0 ? 1 : (nwin+rows-1)/rows;
--
⑨