commit 4e52c75568e1f179cbe0c416db2553b39fc1253c
parent 192a303e40eb4247a23b3f759eef5e4b26443d1f
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Sat, 20 Apr 2019 13:56:04 +0200
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.
Diffstat:
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git 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;