Commit 7dd7768b authored by Chris Allegretta's avatar Chris Allegretta
Browse files

Fix the ifdefs in winio.c

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@921 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
parent df59ae64
Showing with 4 additions and 2 deletions
+4 -2
...@@ -768,7 +768,7 @@ void edit_add(filestruct * fileptr, int yval, int start, int virt_cur_x, ...@@ -768,7 +768,7 @@ void edit_add(filestruct * fileptr, int yval, int start, int virt_cur_x,
int virt_mark_beginx, int this_page) int virt_mark_beginx, int this_page)
{ {
#ifndef NANO_SMALL #ifdef ENABLE_COLOR
colortype *tmpcolor = NULL; colortype *tmpcolor = NULL;
colorstr *tmpstr = NULL; colorstr *tmpstr = NULL;
int k, paintlen; int k, paintlen;
...@@ -781,7 +781,7 @@ void edit_add(filestruct * fileptr, int yval, int start, int virt_cur_x, ...@@ -781,7 +781,7 @@ void edit_add(filestruct * fileptr, int yval, int start, int virt_cur_x,
mvwaddnstr(edit, yval, 0, &fileptr->data[start], mvwaddnstr(edit, yval, 0, &fileptr->data[start],
get_page_end_virtual(this_page) - start + 1); get_page_end_virtual(this_page) - start + 1);
#ifndef NANO_SMALL #ifdef ENABLE_COLOR
if (colorstrings != NULL) if (colorstrings != NULL)
for (tmpcolor = colorstrings; tmpcolor != NULL; tmpcolor = tmpcolor->next) { for (tmpcolor = colorstrings; tmpcolor != NULL; tmpcolor = tmpcolor->next) {
for (tmpstr = tmpcolor->str; tmpstr != NULL; tmpstr = tmpstr->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, ...@@ -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 /* There are quite a few cases that could take place; we'll deal
* with them each in turn */ * with them each in turn */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment