preserve highlight in the presence of redirects
This was only needed for the new cal format. Old format in printmonthb() is already fine.
This commit is contained in:
parent
6398f526d8
commit
fb046c5d9a
2
ncal.c
2
ncal.c
|
@ -917,7 +917,7 @@ printmonthr(int line, int col, int y, int m, int jd_flag, int highlightdate)
|
|||
dt.d = j - jan1 + 1;
|
||||
else
|
||||
sdater(j, &dt);
|
||||
if (j == highlightdate && isatty(STDOUT_FILENO)) {
|
||||
if (j == highlightdate) {
|
||||
mvaddstr(line+i, col+k-1, " ");
|
||||
attron(A_REVERSE);
|
||||
printw("%-.*s", dw-1, ds + dt.d * dw + 1);
|
||||
|
|
Loading…
Reference in New Issue