From 4e52c75568e1f179cbe0c416db2553b39fc1253c Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sat, 20 Apr 2019 13:56:04 +0200 Subject: [PATCH] options: make --breaklonglines work also when --ignorercfiles is used This fixes https://savannah.gnu.org/bugs/?56179. Bug existed since version 4.1, commit 167a8e5c. --- src/nano.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/nano.c b/src/nano.c index 4f310b68..e775a763 100644 --- a/src/nano.c +++ b/src/nano.c @@ -2437,14 +2437,14 @@ int main(int argc, char **argv) /* Simply OR the boolean flags from rcfile and command line. */ for (size_t i = 0; i < sizeof(flags) / sizeof(flags[0]); i++) flags[i] |= flags_cmdline[i]; - - if (hardwrap == 0) - UNSET(BREAK_LONG_LINES); - else if (hardwrap == 1) - SET(BREAK_LONG_LINES); } #endif /* ENABLE_NANORC */ + if (hardwrap == 0) + UNSET(BREAK_LONG_LINES); + else if (hardwrap == 1) + SET(BREAK_LONG_LINES); + /* If the user wants bold instead of reverse video for hilited text... */ if (ISSET(BOLD_TEXT)) hilite_attribute = A_BOLD;