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
a7fa1744
Commit
a7fa1744
authored
7 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: adjust indentation and comments after the previous change
parent
217cfbf3
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
+13
-12
src/files.c
with
13 additions
and
12 deletions
+13
-12
src/files.c
View file @
a7fa1744
...
...
@@ -2014,9 +2014,10 @@ bool write_marked_file(const char *name, FILE *f_open, bool tmp,
/* Write the current file to disk. If the mark is on, write the current
* marked selection to disk. If exiting is TRUE, write the entire file
* to disk regardless of whether the mark is on, and without prompting if
* the TEMP_FILE flag is set and the current file has a name. Return 0
* on error, 1 on success, and 2 when the buffer is to be discarded. */
* to disk regardless of whether the mark is on. Do not ask for a name
* when withprompt is FALSE nor when the TEMP_FILE flag is set and the
* file already has a name. Return 0 on error, 1 on success, and 2 when
* the buffer is to be discarded. */
int
do_writeout
(
bool
exiting
,
bool
withprompt
)
{
int
i
=
0
;
...
...
@@ -2072,20 +2073,20 @@ int do_writeout(bool exiting, bool withprompt)
openfile
->
filename
[
0
]
!=
'\0'
)
answer
=
mallocstrcpy
(
answer
,
openfile
->
filename
);
else
{
/* If we're using restricted mode, and the filename isn't blank,
* disable tab completion
. */
i
=
do_prompt
(
!
ISSET
(
RESTRICTED
)
||
openfile
->
filename
[
0
]
==
'\0'
,
TRUE
,
MWRITEFILE
,
given
,
/* Ask for (confirmation of) the filename. Disable tab completion
* when using restricted mode and the filename isn't blank
. */
i
=
do_prompt
(
!
ISSET
(
RESTRICTED
)
||
openfile
->
filename
[
0
]
==
'\0'
,
TRUE
,
MWRITEFILE
,
given
,
#ifndef DISABLE_HISTORIES
NULL
,
NULL
,
#endif
edit_refresh
,
"%s%s%s"
,
msg
,
edit_refresh
,
"%s%s%s"
,
msg
,
#ifndef NANO_TINY
formatstr
,
backupstr
formatstr
,
backupstr
#else
""
,
""
""
,
""
#endif
);
);
}
if
(
i
<
0
)
{
...
...
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