]> code.delx.au - spectrwm/commitdiff
spaces no longer allowed in separating fonts. use only , instead.
authorDavid Hill <dhill@conformal.com>
Thu, 19 Jul 2012 18:26:56 +0000 (14:26 -0400)
committerReginald Kennedy <rk@rejii.com>
Fri, 20 Jul 2012 22:00:03 +0000 (06:00 +0800)
Makes use able to use fonts with spaces in their names.

spectrwm.c

index 22e0f060ee2043fbccf61fffd20ec51705463ff7..4ec19672f53e49f8c5349fc0dc892f4c076bbbf3 100644 (file)
@@ -1878,7 +1878,7 @@ bar_setup(struct swm_region *r)
                err(1, "bar_setup: calloc: failed to allocate memory.");
 
        if (bar_font == NULL) {
-               while ((font = strsep(&bar_fonts, " ,")) != NULL) {
+               while ((font = strsep(&bar_fonts, ",")) != NULL) {
                        if (*font == '\0')
                                continue;