Skip to content

Commit

Permalink
Allow this code to be commented out when not compiling with curses.
Browse files Browse the repository at this point in the history
  • Loading branch information
ibara committed Oct 31, 2020
1 parent fe33dbf commit ecb75ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit ecb75ab

Please sign in to comment.