From a82e7b765e8da9fedb8fae6b102796f0494a4f5e Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Tue, 5 Sep 2006 16:11:52 +0200 Subject: fixing two off-by-ones --- view.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/view.c b/view.c index 587c53a9..c005a334 100644 --- a/view.c +++ b/view.c @@ -193,12 +193,12 @@ resizecol(Arg *arg) return; if(sel == getnext(clients)) { - if(mw + arg->i > sw - 100) + if(mw + arg->i > sw - 100 || mw + arg->i < 100) return; mw += arg->i; } else { - if(mw - arg->i < 100) + if(mw - arg->i > sw - 100 || mw - arg->i < 100) return; mw -= arg->i; } -- cgit v1.2.3