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

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

View File

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