build: fix compilation with --enable-{tiny,help,multibuffer}

This commit is contained in:
Benno Schulenberg 2018-03-28 16:37:47 +02:00
parent 20d1823d90
commit f3c4dadcf6
2 changed files with 8 additions and 5 deletions

View File

@ -521,7 +521,7 @@ void do_down(void)
openfile->placewewant = leftedge + target_column;
}
#ifndef NANO_TINY
#ifdef ENABLE_HELP
/* Scroll up one line or chunk without scrolling the cursor. */
void do_scroll_up(void)
{
@ -541,9 +541,12 @@ void do_scroll_down(void)
if (openfile->current_y == 0)
do_down();
if (openfile->edittop->next != NULL ||
chunk_for(openfile->firstcolumn, openfile->edittop) <
number_of_chunks_in(openfile->edittop))
if (openfile->edittop->next != NULL
#ifndef NANO_TINY
|| chunk_for(openfile->firstcolumn, openfile->edittop) <
number_of_chunks_in(openfile->edittop)
#endif
)
edit_scroll(FORWARD);
}
#endif

View File

@ -387,7 +387,7 @@ void do_home(void);
void do_end(void);
void do_up(void);
void do_down(void);
#ifndef NANO_TINY
#ifdef ENABLE_HELP
void do_scroll_up(void);
void do_scroll_down(void);
#endif