Commit a7fa1744 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

tweaks: adjust indentation and comments after the previous change

No related merge requests found
Showing with 13 additions and 12 deletions
+13 -12
...@@ -2014,9 +2014,10 @@ bool write_marked_file(const char *name, FILE *f_open, bool tmp, ...@@ -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 /* 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 * 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 * to disk regardless of whether the mark is on. Do not ask for a name
* the TEMP_FILE flag is set and the current file has a name. Return 0 * when withprompt is FALSE nor when the TEMP_FILE flag is set and the
* on error, 1 on success, and 2 when the buffer is to be discarded. */ * 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 do_writeout(bool exiting, bool withprompt)
{ {
int i = 0; int i = 0;
...@@ -2072,8 +2073,8 @@ int do_writeout(bool exiting, bool withprompt) ...@@ -2072,8 +2073,8 @@ int do_writeout(bool exiting, bool withprompt)
openfile->filename[0] != '\0') openfile->filename[0] != '\0')
answer = mallocstrcpy(answer, openfile->filename); answer = mallocstrcpy(answer, openfile->filename);
else { else {
/* If we're using restricted mode, and the filename isn't blank, /* Ask for (confirmation of) the filename. Disable tab completion
* disable tab completion. */ * when using restricted mode and the filename isn't blank. */
i = do_prompt(!ISSET(RESTRICTED) || openfile->filename[0] == '\0', i = do_prompt(!ISSET(RESTRICTED) || openfile->filename[0] == '\0',
TRUE, MWRITEFILE, given, TRUE, MWRITEFILE, given,
#ifndef DISABLE_HISTORIES #ifndef DISABLE_HISTORIES
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment