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
4eac699d
Commit
4eac699d
authored
8 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: remove some more annoying conditional compilation
parent
454f5cbd
master
feature/match-parens
refactor/readbility
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/files.c
+2
-6
src/files.c
src/nano.c
+1
-8
src/nano.c
with
3 additions
and
14 deletions
+3
-14
src/files.c
View file @
4eac699d
...
...
@@ -422,12 +422,8 @@ void stat_with_alloc(const char *filename, struct stat **pstat)
* or into a new buffer when MULTIBUFFER is set or there is no buffer yet. */
bool
open_buffer
(
const
char
*
filename
,
bool
undoable
)
{
bool
new_buffer
=
(
openfile
==
NULL
#ifndef DISABLE_MULTIBUFFER
||
ISSET
(
MULTIBUFFER
)
#endif
);
/* Whether we load into this buffer or a new one. */
bool
new_buffer
=
(
openfile
==
NULL
||
ISSET
(
MULTIBUFFER
));
/* Whether we load into the current buffer or a new one. */
char
*
realname
;
/* The filename after tilde expansion. */
FILE
*
f
;
...
...
This diff is collapsed.
Click to expand it.
src/nano.c
View file @
4eac699d
...
...
@@ -1415,14 +1415,7 @@ void do_toggle(int flag)
enabled
=
ISSET
(
flag
);
if
(
flag
==
NO_HELP
#ifndef DISABLE_WRAPPING
||
flag
==
NO_WRAP
#endif
#ifndef DISABLE_COLOR
||
flag
==
NO_COLOR_SYNTAX
#endif
)
if
(
flag
==
NO_HELP
||
flag
==
NO_WRAP
||
flag
==
NO_COLOR_SYNTAX
)
enabled
=
!
enabled
;
statusline
(
HUSH
,
"%s %s"
,
_
(
flagtostr
(
flag
)),
...
...
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