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

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

No related merge requests found
Showing with 8 additions and 5 deletions
+8 -5
...@@ -521,7 +521,7 @@ void do_down(void) ...@@ -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) ...@@ -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
......
...@@ -387,7 +387,7 @@ void do_home(void); ...@@ -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
......
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