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
1b902d62
Commit
1b902d62
authored
8 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: elide unneeded intermediate assignments
parent
619044e8
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/files.c
+5
-7
src/files.c
with
5 additions
and
7 deletions
+5
-7
src/files.c
View file @
1b902d62
...
...
@@ -2422,9 +2422,8 @@ int do_writeout(bool exiting)
if
(
exiting
||
!
openfile
->
mark_set
)
#endif
{
i
=
do_yesno_prompt
(
FALSE
,
_
(
"Save file under DIFFERENT NAME? "
));
if
(
i
<
1
)
if
(
do_yesno_prompt
(
FALSE
,
_
(
"Save file under "
"DIFFERENT NAME? "
))
<
1
)
continue
;
maychange
=
TRUE
;
}
...
...
@@ -2451,10 +2450,9 @@ int do_writeout(bool exiting)
(
openfile
->
current_stat
->
st_mtime
<
st
.
st_mtime
||
openfile
->
current_stat
->
st_dev
!=
st
.
st_dev
||
openfile
->
current_stat
->
st_ino
!=
st
.
st_ino
))
{
i
=
do_yesno_prompt
(
FALSE
,
_
(
"File was modified since you opened it;"
" continue saving? "
));
if
(
i
==
0
||
i
==
-
1
)
if
(
do_yesno_prompt
(
FALSE
,
_
(
"File was modified since "
"you opened it; continue saving? "
))
<
1
)
continue
;
}
#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