commit: ecb75ab017842021260b38c0feeb71c9ca8e590b
parent: fe33dbf67b94df102603fdcf26d4d95d317e43a8
author: Brian Callahan <bcallah@openbsd.org>
date: Fri, 30 Oct 2020 20:45:10 -0400
Allow this code to be commented out when not compiling with curses.
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/vi.c b/vi.c
@@ -14,7 +14,7 @@
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
-#ifndef SMALL
+#if !defined(SMALL) && !defined(NO_CURSES)
# include <term.h>
# include <curses.h>
#endif
@@ -1731,7 +1731,7 @@ do_clear_screen(void)
{
int neednl = 1;
-#ifndef SMALL
+#if !defined(SMALL) && !defined(NO_CURSES)
if (cur_term != NULL && clear_screen != NULL) {
if (tputs(clear_screen, 1, x_putc) != ERR)
neednl = 0;