aboutsummaryrefslogtreecommitdiffstats
path: root/dwm.c
diff options
context:
space:
mode:
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/dwm.c b/dwm.c
index 044177d..1266e46 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();
}
remember that computers suck.