From 27127853dbf7cfc83cd2690445cae953c1a73989 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Tue, 14 Jan 2020 16:28:28 +0100 Subject: [PATCH] tweaks: exclude an unneeded fragment of code from the tiny version --- src/nano.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/nano.c b/src/nano.c index 08581be2..5a8be8c9 100644 --- a/src/nano.c +++ b/src/nano.c @@ -1745,8 +1745,10 @@ int main(int argc, char **argv) bool fill_used = FALSE; /* Was the fill option used on the command line? */ #endif +#ifdef ENABLE_WRAPPING int hardwrap = -2; /* Becomes 0 when --nowrap and 1 when --breaklonglines is used. */ +#endif #ifdef ENABLE_JUSTIFY int quoterc; /* Whether the quoting regex was compiled successfully. */ @@ -2221,10 +2223,12 @@ int main(int argc, char **argv) } #endif /* ENABLE_NANORC */ +#ifdef ENABLE_WRAPPING if (hardwrap == 0) UNSET(BREAK_LONG_LINES); else if (hardwrap == 1) SET(BREAK_LONG_LINES); +#endif /* If the user wants bold instead of reverse video for hilited text... */ if (ISSET(BOLD_TEXT))