Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs24-19fa
git_rec_nano
Commits
9dc72cf3
Commit
9dc72cf3
authored
7 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: avoid an unused-variable warning with --disable-nanorc
parent
d5ac1ed3
master
feature/match-parens
refactor/readbility
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/nano.c
+4
-2
src/nano.c
with
4 additions
and
2 deletions
+4
-2
src/nano.c
View file @
9dc72cf3
...
...
@@ -1893,14 +1893,14 @@ void do_output(char *output, size_t output_len, bool allow_cntrls)
int
main
(
int
argc
,
char
**
argv
)
{
int
optchr
;
#ifdef
ENABLED_WRAPORJUSTIFY
#if
def
ined(
ENABLED_WRAPORJUSTIFY
) && defined(ENABLE_NANORC)
bool
fill_used
=
FALSE
;
/* Was the fill option used on the command line? */
#endif
#ifdef ENABLE_WRAPPING
bool
forced_wrapping
=
FALSE
;
/* Should long lines be automatically hard wrapped? */
#endif
#endif
#ifdef ENABLE_MULTIBUFFER
bool
is_multibuffer
;
/* The actual value of the multibuffer option, restored after
...
...
@@ -2177,7 +2177,9 @@ int main(int argc, char **argv)
fprintf
(
stderr
,
"
\n
"
);
exit
(
1
);
}
#ifdef ENABLE_NANORC
fill_used
=
TRUE
;
#endif
#ifdef ENABLE_WRAPPING
forced_wrapping
=
TRUE
;
#endif
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help