nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 2430c5b230ceac3dc2d83f00b82794d1fef40d55
parent 9b8930cc137a0096adfc1a2063b1c0f5d90ce065
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Mon, 22 Jun 2020 11:15:27 +0200

build: allow compilation to succeed on curses without italic support

The OpenBSD system that I have access to still uses ncurses-5.7,
and support for A_ITALIC appeared in version 6.0.

Diffstat:
Msrc/rcfile.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/rcfile.c b/src/rcfile.c @@ -1058,7 +1058,9 @@ bool parse_combination(char *combostr, short *fg, short *bg, int *attributes) } if (strncmp(combostr, "italic", 6) == 0) { +#ifdef A_ITALIC *attributes |= A_ITALIC; +#endif if (combostr[6] != ',') { jot_error(N_("An attribute requires a subsequent comma")); return FALSE;