doing it in a shorter way
This commit is contained in:
parent
0e98090d65
commit
260a55ef62
4
dwm.c
4
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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user