diff options
Diffstat (limited to 'src/status_bar.c')
-rw-r--r-- | src/status_bar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/status_bar.c b/src/status_bar.c index a00a2ad3..52d90439 100644 --- a/src/status_bar.c +++ b/src/status_bar.c @@ -144,7 +144,7 @@ status_bar_active(const int win) int cols = getmaxx(stdscr); wattron(status_bar, COLOUR_STATUS_ACTIVE); - if (win < 10) + if (win+1 < 10) mvwprintw(status_bar, 0, cols - 31 + active_pos, "%d", win+1); else mvwprintw(status_bar, 0, cols - 31 + active_pos, "0"); @@ -165,7 +165,7 @@ status_bar_new(const int win) wattron(status_bar, COLOUR_STATUS_NEW); wattron(status_bar, A_BLINK); - if (win < 10) + if (win+1 < 10) mvwprintw(status_bar, 0, cols - 31 + active_pos, "%d", win+1); else mvwprintw(status_bar, 0, cols - 31 + active_pos, "0"); |