From 260a55ef625466a5ba6c6c6ef736706df7b5d81b Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Sat, 3 Nov 2007 21:14:04 +0100 Subject: doing it in a shorter way --- dwm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dwm.c b/dwm.c index 044177d3..1266e467 100644 --- a/dwm.c +++ b/dwm.c @@ -1321,10 +1321,8 @@ run(void) { *p = '\0'; offset = 0; } - else if(offset + r < len - 1) - offset += r; else - offset = 0; + offset = (offset + r < len - 1) ? offset + r : 0; } drawbar(); } -- cgit v1.2.3