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.
Этот коммит содержится в:
родитель
192a303e40
Коммит
4e52c75568
10
src/nano.c
10
src/nano.c
@ -2437,14 +2437,14 @@ int main(int argc, char **argv)
|
|||||||
/* Simply OR the boolean flags from rcfile and command line. */
|
/* Simply OR the boolean flags from rcfile and command line. */
|
||||||
for (size_t i = 0; i < sizeof(flags) / sizeof(flags[0]); i++)
|
for (size_t i = 0; i < sizeof(flags) / sizeof(flags[0]); i++)
|
||||||
flags[i] |= flags_cmdline[i];
|
flags[i] |= flags_cmdline[i];
|
||||||
|
|
||||||
if (hardwrap == 0)
|
|
||||||
UNSET(BREAK_LONG_LINES);
|
|
||||||
else if (hardwrap == 1)
|
|
||||||
SET(BREAK_LONG_LINES);
|
|
||||||
}
|
}
|
||||||
#endif /* ENABLE_NANORC */
|
#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 the user wants bold instead of reverse video for hilited text... */
|
||||||
if (ISSET(BOLD_TEXT))
|
if (ISSET(BOLD_TEXT))
|
||||||
hilite_attribute = A_BOLD;
|
hilite_attribute = A_BOLD;
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user