"git@gitlab.caltech.edu:cs24-19fa/git_rec_nano.git" did not exist on "b775c07108b0457cc5cec2ab300fb97c43894494"
Commit 69bd4d1f authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

tweaks: slightly condense a function and its comment

No related merge requests found
Showing with 4 additions and 9 deletions
+4 -9
...@@ -1296,21 +1296,16 @@ void do_insertfile(void) ...@@ -1296,21 +1296,16 @@ void do_insertfile(void)
free(given); free(given);
} }
/* Insert a file into a new buffer or the current buffer, depending on /* If the current mode of operation allows it, go insert a file. */
* whether the MULTIBUFFER flag is set. If we're in view mode, only
* allow inserting a file into a new buffer. */
void do_insertfile_void(void) void do_insertfile_void(void)
{ {
if (ISSET(RESTRICTED)) { if (ISSET(RESTRICTED))
show_restricted_warning(); show_restricted_warning();
return;
}
#ifndef DISABLE_MULTIBUFFER #ifndef DISABLE_MULTIBUFFER
if (ISSET(VIEW_MODE) && !ISSET(MULTIBUFFER)) else if (ISSET(VIEW_MODE) && !ISSET(MULTIBUFFER))
statusbar(_("Key invalid in non-multibuffer mode")); statusbar(_("Key invalid in non-multibuffer mode"));
else
#endif #endif
else
do_insertfile(); do_insertfile();
} }
......
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