nano

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

commit 0346e63c201815a82223aaf1e1475fdf2758fc61
parent 9e982f32832fb96ef4b4448d3f9252932b165872
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Fri,  5 Nov 2021 15:53:01 +0100

build: fix compilation when configured with --enable-tiny

Problem existed since commit 50106266 from two weeks ago.

Diffstat:
Msrc/cut.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/cut.c b/src/cut.c @@ -728,9 +728,11 @@ void paste_text(void) update_undo(PASTE); #endif +#ifdef ENABLE_WRAPPING /* When still on the same line and doing hard-wrapping, limit the width. */ if (openfile->current == was_current && ISSET(BREAK_LONG_LINES)) do_wrap(); +#endif /* If we pasted less than a screenful, don't center the cursor. */ if (less_than_a_screenful(was_lineno, was_leftedge))