From 7dd7768bb6fa80bb54240ff064ff9e76b4ceffea Mon Sep 17 00:00:00 2001 From: Chris Allegretta Date: Sat, 8 Dec 2001 19:52:28 +0000 Subject: [PATCH] Fix the ifdefs in winio.c git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@921 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- winio.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/winio.c b/winio.c index b3233f7a..88bcf628 100644 --- a/winio.c +++ b/winio.c @@ -768,7 +768,7 @@ void edit_add(filestruct * fileptr, int yval, int start, int virt_cur_x, int virt_mark_beginx, int this_page) { -#ifndef NANO_SMALL +#ifdef ENABLE_COLOR colortype *tmpcolor = NULL; colorstr *tmpstr = NULL; int k, paintlen; @@ -781,7 +781,7 @@ void edit_add(filestruct * fileptr, int yval, int start, int virt_cur_x, mvwaddnstr(edit, yval, 0, &fileptr->data[start], get_page_end_virtual(this_page) - start + 1); -#ifndef NANO_SMALL +#ifdef ENABLE_COLOR if (colorstrings != NULL) for (tmpcolor = colorstrings; tmpcolor != NULL; tmpcolor = tmpcolor->next) { for (tmpstr = tmpcolor->str; tmpstr != NULL; tmpstr = tmpstr->next) { @@ -823,6 +823,8 @@ void edit_add(filestruct * fileptr, int yval, int start, int virt_cur_x, } } } +#endif /* ENABLE_COLOR */ +#ifndef NANO_SMALL /* There are quite a few cases that could take place; we'll deal * with them each in turn */ -- 2.39.5