diff options
| author | mischief <mischief@offblast.org> | 2014-01-08 21:32:27 -0800 |
|---|---|---|
| committer | mischief <mischief@offblast.org> | 2014-01-08 21:32:27 -0800 |
| commit | a872d5241e19adb48126578f66103a334843c4e8 (patch) | |
| tree | d98450faec9bcadf927ded19245fb8958f38d34c | |
| parent | 8319457a10fd0bbd61866c56f5e5af4521d28fe8 (diff) | |
| download | plan9front-a872d5241e19adb48126578f66103a334843c4e8.tar.xz | |
winwatch: this is not about sanity. rows might be negative
| -rw-r--r-- | sys/src/cmd/winwatch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/winwatch.c b/sys/src/cmd/winwatch.c index f2d8fefd1..c86ff7a66 100644 --- a/sys/src/cmd/winwatch.c +++ b/sys/src/cmd/winwatch.c @@ -188,7 +188,7 @@ geometry(void) 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; |
