968273b1c3e42fc0a9f184aa56fb54a9100d1d42 — William Casarin 5 months ago 2d91daa
more succinct in/out display
1 files changed, 4 insertions(+), 4 deletions(-)

M viscal.c
M viscal.c => viscal.c +4 -4
@@ 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,