diff options
| author | Jari Vetoniemi <mailroxas@gmail.com> | 2014-10-26 15:48:33 +0200 | 
|---|---|---|
| committer | Jari Vetoniemi <mailroxas@gmail.com> | 2014-10-26 15:48:33 +0200 | 
| commit | 2ad6acaef2e0c779eed4dc9747864a9f5ef89fea (patch) | |
| tree | 9ecc7501e5c0219386ffa425318d76f8ef241ea7 | |
| parent | a44b001e8260883c0876fba967b1d72a5b7ab7c3 (diff) | |
| download | bemenu-2ad6acaef2e0c779eed4dc9747864a9f5ef89fea.tar.gz bemenu-2ad6acaef2e0c779eed4dc9747864a9f5ef89fea.tar.bz2 bemenu-2ad6acaef2e0c779eed4dc9747864a9f5ef89fea.zip | |
Fix font parsing.
| -rw-r--r-- | client/common/common.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/client/common/common.c b/client/common/common.c index 8677d1f..3366c2c 100644 --- a/client/common/common.c +++ b/client/common/common.c @@ -79,7 +79,7 @@ usage(FILE *out, const char *name)            " -b, --bottom          appears at the bottom of the screen. ()\n"            " -f, --grab            grabs the keyboard before reading stdin. ()\n"            " -m, --monitor         index of monitor where menu will appear. ()\n" -          " --fn                  defines the font to be used. (w)\n" +          " --fn                  defines the font to be used ('name [size]'). (w)\n"            " --bg                  defines the background color. (w)\n"            " --tb                  defines the title background color. (w)\n"            " --tf                  defines the title foreground color. (w)\n" @@ -191,7 +191,7 @@ parse_args(struct client *client, int *argc, char **argv[])                  break;              case 0x102: -                if (sscanf(optarg, "%ms:%u", &client->font, &client->font_size) < 2) +                if (sscanf(optarg, "%ms %u", &client->font, &client->font_size) < 2)                      sscanf(optarg, "%ms", &client->font);                  break;              case 0x103: | 
