commit 968273b1c3e42fc0a9f184aa56fb54a9100d1d42
parent 2d91daab66f47a81160ebfb6e3e3d0c1bb78f94d
Author: William Casarin <jb55@jb55.com>
Date: Sun, 4 Aug 2019 15:14:25 -0700
more succinct in/out display
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/viscal.c b/viscal.c
@@ -2144,8 +2144,8 @@ draw_event_summary(cairo_t *cr, struct cal *cal, time_t st, time_t et,
if (out >= 0 && in >= 0 && out < len) {
const char *fmt =
is_editing
- ? "'%s' | %s to %s | %s | %s in | %s left"
- : "%s | %s to %s | %s | %s in | %s left";
+ ? "'%s' | %s to %s | %s | +%s -%s"
+ : "%s | %s to %s | %s | +%s -%s";
sprintf(buffer,
fmt,
@@ -2160,8 +2160,8 @@ draw_event_summary(cairo_t *cr, struct cal *cal, time_t st, time_t et,
else if (in >= 0 && in < 0) {
const char *fmt =
is_editing
- ? "'%s' | %s to %s | %s | %s in"
- : "%s | %s to %s | %s | %s in";
+ ? "'%s' | %s to %s | %s | +%s"
+ : "%s | %s to %s | %s | +%s";
sprintf(buffer, fmt,
summary,