tweaks: improve a comment, and drop two cluttering compile conditions
parent
c692a6ca70
commit
13c5bcb4d8
17
src/files.c
17
src/files.c
|
@ -1107,8 +1107,9 @@ bool execute_command(const char *command)
|
||||||
}
|
}
|
||||||
#endif /* NANO_TINY */
|
#endif /* NANO_TINY */
|
||||||
|
|
||||||
/* Insert a file into the current buffer, or into a new buffer when
|
/* Insert a file into the current buffer (or into a new buffer). But when
|
||||||
* the MULTIBUFFER flag is set. */
|
* execute is TRUE, run a command in the shell and insert its output into
|
||||||
|
* the buffer, or just run one of the tools listed in the help lines. */
|
||||||
void do_insertfile(bool execute)
|
void do_insertfile(bool execute)
|
||||||
{
|
{
|
||||||
int response;
|
int response;
|
||||||
|
@ -1158,15 +1159,9 @@ void do_insertfile(bool execute)
|
||||||
|
|
||||||
present_path = mallocstrcpy(present_path, "./");
|
present_path = mallocstrcpy(present_path, "./");
|
||||||
|
|
||||||
response = do_prompt(
|
response = do_prompt(execute ? MEXECUTE : MINSERTFILE, given,
|
||||||
#ifndef NANO_TINY
|
execute ? &execute_history : NULL,
|
||||||
execute ? MEXECUTE :
|
edit_refresh, msg,
|
||||||
#endif
|
|
||||||
MINSERTFILE, given,
|
|
||||||
#ifndef NANO_TINY
|
|
||||||
execute ? &execute_history :
|
|
||||||
#endif
|
|
||||||
NULL, edit_refresh, msg,
|
|
||||||
#ifdef ENABLE_OPERATINGDIR
|
#ifdef ENABLE_OPERATINGDIR
|
||||||
operating_dir != NULL ? operating_dir :
|
operating_dir != NULL ? operating_dir :
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue