ref: a872d5241e19adb48126578f66103a334843c4e8
parent: 8319457a10fd0bbd61866c56f5e5af4521d28fe8
author: mischief <[email protected]>
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;