summaryrefslogtreecommitdiffstats
path: root/tty-term.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2021-03-01 10:51:24 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2021-03-01 10:51:24 +0000
commit9cd45ddad3141370e0dac117388984a3f026c097 (patch)
treeea5d22d8c84e7b229484c0aa45b7030fd210150e /tty-term.c
parentba9f89c44e3294284493178fb34f864aafb399cd (diff)
Reinstate del_curterm ifdef bits.
Diffstat (limited to 'tty-term.c')
-rw-r--r--tty-term.c3
1 files changed, 3 insertions, 0 deletions
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);
}