Use a reasonable default sep_block_width if a separator_symbol is given

This commit is contained in:
Ingo Bürk
2015-04-03 22:54:59 +02:00
parent 9eba4eecb7
commit a952ae74f4
4 changed files with 8 additions and 6 deletions

View File

@ -162,7 +162,10 @@ static int stdin_start_map(void *context) {
memset(&(ctx->block), '\0', sizeof(struct status_block));
/* Default width of the separator block. */
ctx->block.sep_block_width = logical_px(9);
if (config.separator_symbol == NULL)
ctx->block.sep_block_width = logical_px(9);
else
ctx->block.sep_block_width = logical_px(8) + separator_symbol_width;
return 1;
}