diff options
author | Lukas Fleischer <lfleischer@calcurse.org> | 2023-04-15 09:47:30 -0400 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2023-04-15 09:47:30 -0400 |
commit | b8b7a3a7348417256885b4d7fe9d7967ba00a95c (patch) | |
tree | 012578ee1062e39faeee434a2d49e6da81cf3769 | |
parent | ea9a98ca5d2520f1fa32f02e88ebde865c44a13d (diff) | |
download | calcurse-b8b7a3a7348417256885b4d7fe9d7967ba00a95c.tar.gz calcurse-b8b7a3a7348417256885b4d7fe9d7967ba00a95c.zip |
Fix characters in weekly view
Fixes GitHub issue #441.
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
-rw-r--r-- | src/ui-calendar.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/ui-calendar.c b/src/ui-calendar.c index 14a0920..c1719d8 100644 --- a/src/ui-calendar.c +++ b/src/ui-calendar.c @@ -560,9 +560,8 @@ draw_weekly_view(struct scrollwin *sw, struct date *current_day) if (j != WEEKINDAYS - 1 && i != DAYSLICESNO - 1) { WINS_CALENDAR_LOCK; - mvwhline(sw->inner, OFFY + 2 + i, - OFFX + 3 + 4 * j, ACS_S9, - 2); + mvwaddstr(sw->inner, OFFY + 2 + i, + OFFX + 3 + 4 * j, "__"); WINS_CALENDAR_UNLOCK; } if (slices[i]) { @@ -593,9 +592,9 @@ draw_weekly_view(struct scrollwin *sw, struct date *current_day) /* Draw marks to indicate midday on the sides of the calendar. */ WINS_CALENDAR_LOCK; custom_apply_attr(sw->inner, ATTR_HIGHEST); - mvwhline(sw->inner, OFFY + 1 + DAYSLICESNO / 2, OFFX, ACS_S9, 1); - mvwhline(sw->inner, OFFY + 1 + DAYSLICESNO / 2, - OFFX + WCALWIDTH - 1, ACS_S9, 1); + mvwaddch(sw->inner, OFFY + 1 + DAYSLICESNO / 2, OFFX, '<'); + mvwaddch(sw->inner, OFFY + 1 + DAYSLICESNO / 2, + OFFX + WCALWIDTH - 1, '>'); custom_remove_attr(sw->inner, ATTR_HIGHEST); WINS_CALENDAR_UNLOCK; |