From 9cd45ddad3141370e0dac117388984a3f026c097 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Mon, 1 Mar 2021 10:51:24 +0000 Subject: [PATCH] Reinstate del_curterm ifdef bits. --- tty-term.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tty-term.c b/tty-term.c index cc0b8ceb..1d9b36da 100644 --- a/tty-term.c +++ b/tty-term.c @@ -695,7 +695,10 @@ tty_term_read_list(const char *name, int fd, char ***caps, u_int *ncaps, (*ncaps)++; } +#if !defined(NCURSES_VERSION_MAJOR) || NCURSES_VERSION_MAJOR > 5 || \ + (NCURSES_VERSION_MAJOR == 5 && NCURSES_VERSION_MINOR > 6) del_curterm(cur_term); +#endif return (0); }