From 0d2e47b5985c9f17a6256a8be32ad4c81842cd06 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Tue, 15 Feb 2022 17:56:12 -0800 Subject: [PATCH] start working on refactoring mkmonth functions Ncurses doesn't let me highlight into an intermediate lines buffer. --- ncal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ncal.c b/ncal.c index 35f3069..ebf6255 100644 --- a/ncal.c +++ b/ncal.c @@ -701,7 +701,7 @@ monthrangeb(int y, int m, int jd_flag, int before, int after, int highlightdate) while (m <= m2) { int count = 0; for (i = 0; i != mpl && m + i <= m2; i++) { - mkmonthb(M2Y(m + i), M2M(m + i) - 1, jd_flag, year + i, highlightdate); + mkmonthb(M2Y(m + i), M2M(m + i) - 1, jd_flag, &year[i], highlightdate); count++; } @@ -800,7 +800,7 @@ monthranger(int y, int m, int jd_flag, int before, int after, int highlightdate) while (m <= m2) { int count = 0; for (i = 0; i != mpl && m + i <= m2; i++) { - mkmonthr(M2Y(m + i), M2M(m + i) - 1, jd_flag, year + i, highlightdate); + mkmonthr(M2Y(m + i), M2M(m + i) - 1, jd_flag, &year[i], highlightdate); count++; }