Skip to content
GitLab
Menu
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
4de0a504
Commit
4de0a504
authored
8 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: reshuffle an if statement
parent
dc76e846
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/files.c
+4
-6
src/files.c
with
4 additions
and
6 deletions
+4
-6
src/files.c
View file @
4de0a504
...
...
@@ -912,11 +912,6 @@ void read_file(FILE *f, int fd, const char *filename, bool undoable, bool checkw
* file we inserted. */
openfile
->
placewewant
=
xplustabs
();
#ifndef NANO_TINY
if
(
undoable
)
update_undo
(
INSERT
);
#endif
if
(
!
writable
)
statusline
(
ALERT
,
"File '%s' is unwritable"
,
filename
);
#ifndef NANO_TINY
...
...
@@ -936,7 +931,7 @@ void read_file(FILE *f, int fd, const char *filename, bool undoable, bool checkw
"Read %lu lines (Converted from DOS format)"
,
(
unsigned
long
)
num_lines
),
(
unsigned
long
)
num_lines
);
}
#endif
/* !NANO_TINY */
#endif
else
statusline
(
HUSH
,
P_
(
"Read %lu line"
,
"Read %lu lines"
,
(
unsigned
long
)
num_lines
),
(
unsigned
long
)
num_lines
);
...
...
@@ -945,6 +940,9 @@ void read_file(FILE *f, int fd, const char *filename, bool undoable, bool checkw
focusing
=
FALSE
;
#ifndef NANO_TINY
if
(
undoable
)
update_undo
(
INSERT
);
if
(
ISSET
(
MAKE_IT_UNIX
))
openfile
->
fmt
=
NIX_FILE
;
#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