mirror of https://github.com/MidnightCommander/mc
* cmd.c (edit_cmd_new): Call editor with NULL argiment, not with
an empty string. nvi won't save the file if invoked with an empty argument. (execute_with_vfs_arg): Don't call vfs_file_is_local() on NULL. Reported by Adam Byrtek <alpha@debian.org>
This commit is contained in:
parent
881ee01385
commit
fd051ca33e
|
@ -1,3 +1,11 @@
|
|||
2003-02-11 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* cmd.c (edit_cmd_new): Call editor with NULL argiment, not with
|
||||
an empty string. nvi won't save the file if invoked with an
|
||||
empty argument.
|
||||
(execute_with_vfs_arg): Don't call vfs_file_is_local() on NULL.
|
||||
Reported by Adam Byrtek <alpha@debian.org>
|
||||
|
||||
2003-02-04 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* cmd.c (get_random_hint): Add "force" argument to ignore
|
||||
|
|
|
@ -97,7 +97,7 @@ execute_with_vfs_arg (const char *command, const char *filename)
|
|||
time_t mtime;
|
||||
|
||||
/* Simplest case, this file is local */
|
||||
if (vfs_file_is_local (filename)) {
|
||||
if (!filename || vfs_file_is_local (filename)) {
|
||||
execute_internal (command, filename);
|
||||
return;
|
||||
}
|
||||
|
@ -348,7 +348,7 @@ edit_cmd (void)
|
|||
void
|
||||
edit_cmd_new (void)
|
||||
{
|
||||
do_edit ("");
|
||||
do_edit (NULL);
|
||||
}
|
||||
|
||||
/* Invoked by F5. Copy, default to the other panel. */
|
||||
|
|
Loading…
Reference in New Issue