Skip to content

Commit

Permalink
fix left zero width items
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixKratz committed Jan 18, 2022
1 parent cdaeaa8 commit b6a0720
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bar.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ void bar_calculate_bounds(struct bar* bar) {
+ bar_item->background.padding_right
- bar_item->custom_width : 0;
} else
*next_position += bar_item_length + bar_item->background.padding_left + bar_item->background.padding_right;
*next_position += bar_item->has_const_width ? bar_item->custom_width : (bar_item_length + bar_item->background.padding_left + bar_item->background.padding_right);
}
}

Expand Down

0 comments on commit b6a0720

Please sign in to comment.