diff options
| author | Anselm R. Garbe <garbeam@gmail.com> | 2007-11-03 21:14:04 +0100 |
|---|---|---|
| committer | Anselm R. Garbe <garbeam@gmail.com> | 2007-11-03 21:14:04 +0100 |
| commit | 260a55ef625466a5ba6c6c6ef736706df7b5d81b (patch) | |
| tree | bb0cde84ccae7c0ea9ce087c074fdf6b95c7e846 /dwm.c | |
| parent | removed fgets usage, increment offset until a line is read, dwm will drop all... (diff) | |
| download | dwm-260a55ef625466a5ba6c6c6ef736706df7b5d81b.tar.gz dwm-260a55ef625466a5ba6c6c6ef736706df7b5d81b.zip | |
doing it in a shorter way
Diffstat (limited to 'dwm.c')
| -rw-r--r-- | dwm.c | 4 |
1 files changed, 1 insertions, 3 deletions
| @@ -1321,10 +1321,8 @@ run(void) { | |||
| 1321 | *p = '\0'; | 1321 | *p = '\0'; |
| 1322 | offset = 0; | 1322 | offset = 0; |
| 1323 | } | 1323 | } |
| 1324 | else if(offset + r < len - 1) | ||
| 1325 | offset += r; | ||
| 1326 | else | 1324 | else |
| 1327 | offset = 0; | 1325 | offset = (offset + r < len - 1) ? offset + r : 0; |
| 1328 | } | 1326 | } |
| 1329 | drawbar(); | 1327 | drawbar(); |
| 1330 | } | 1328 | } |
