Skip to content

Commit

Permalink
remove unnecessary set of sidebar width
Browse files Browse the repository at this point in the history
When the function is called, `col` is zero, which leads to setting the
sidebar width (in percent) to zero. As the variable holding the
percentage is `static unsigned sbarwidth_perc` it is initialized to zero
anyway and we set the percentage later to the value loaded from the
configuration, too.

Signed-off-by: Max <max@mxzero.net>
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
  • Loading branch information
Max authored and Lukas Fleischer committed Nov 6, 2023
1 parent d291c1f commit 42e0f84
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/vars.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,6 @@ void vars_init(void)

ui_calendar_set_first_day_of_week(MONDAY);

wins_set_sbar_width(col * SBARMINWIDTH / 100);

/* Pad structure to scroll text inside the appointment panel */
apad.length = 1;
apad.first_onscreen = 0;
Expand Down

0 comments on commit 42e0f84

Please sign in to comment.