Commit f3c4dadc authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

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

Showing with 8 additions and 5 deletions
+8 -5
......@@ -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
......
......@@ -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
......
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