nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit f3c4dadcf6f8adb658bba2bd4ff56db713c42c07
parent 20d1823d9032eb2df2e58a72bd694e973a4c4a10
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Wed, 28 Mar 2018 16:37:47 +0200

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

Diffstat:
Msrc/move.c | 11+++++++----
Msrc/proto.h | 2+-
2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/src/move.c b/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 diff --git a/src/proto.h b/src/proto.h @@ -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