From 496dad696cc3eae2f34e5ba3f8b599852c2e6d7c Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Wed, 10 Nov 2021 09:07:23 +0100 Subject: [PATCH] build: fix compilation with --enable-tiny --enable-wrapping Problem existed since commit 50106266 from three weeks ago. --- src/cut.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cut.c b/src/cut.c index 1ea394b1..c0826e2c 100644 --- 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;