HalosGhost / dstat

A lightweight status program for simple WMs
GNU General Public License v2.0
8 stars 0 forks source link

Do not add the module separator indiscriminantly #13

Closed HalosGhost closed 6 years ago

HalosGhost commented 6 years ago

At the moment, a module separator is baked into each module's format string. The end result is that, if you disable modules at compile time, you can end up with an unnecessary separator.

This is quite simple to fix. Remove the baked-in separator from each module. Between each module write, check if something has been written to the buffer for output. If so, add the module separator.

HalosGhost commented 6 years ago

via 244145d2906fbfe37298a0d9e9cd8a46ca9ad54b