mirror of
git://git.sv.gnu.org/nano.git
synced 2025-01-06 01:22:15 +03:00
build: fix compilation with --enable-{tiny,help,multibuffer}
This commit is contained in:
parent
20d1823d90
commit
f3c4dadcf6
11
src/move.c
11
src/move.c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user