tdoing it in a shorter way - dwm - [fork] customized build of dwm, the dynamic window manager
HTML git clone git://src.adamsgaard.dk/dwm
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 260a55ef625466a5ba6c6c6ef736706df7b5d81b
DIR parent 0e98090d653457488d74103dc44a1e2aba071895
HTML Author: Anselm R. Garbe <garbeam@gmail.com>
Date: Sat, 3 Nov 2007 21:14:04 +0100
doing it in a shorter way
Diffstat:
M dwm.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
DIR diff --git a/dwm.c b/dwm.c
t@@ -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();
}