nano

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

commit 496dad696cc3eae2f34e5ba3f8b599852c2e6d7c
parent a623f5836c64bd86a0f6556ebd6828db111da8d8
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Wed, 10 Nov 2021 09:07:23 +0100

build: fix compilation with --enable-tiny --enable-wrapping

Problem existed since commit 50106266 from three weeks ago.

Diffstat:
Msrc/cut.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/cut.c b/src/cut.c @@ -694,9 +694,11 @@ void copy_text(void) /* Copy text from the cutbuffer into the current buffer. */ void paste_text(void) { -#ifndef NANO_TINY +#if defined(ENABLE_WRAPPING) || !defined(NANO_TINY) /* Remember where the paste started. */ linestruct *was_current = openfile->current; +#endif +#ifndef NANO_TINY bool had_anchor = was_current->has_anchor; #endif ssize_t was_lineno = openfile->current->lineno;