* 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>
Этот коммит содержится в:
родитель
881ee01385
Коммит
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>
|
2003-02-04 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
* cmd.c (get_random_hint): Add "force" argument to ignore
|
* 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;
|
time_t mtime;
|
||||||
|
|
||||||
/* Simplest case, this file is local */
|
/* Simplest case, this file is local */
|
||||||
if (vfs_file_is_local (filename)) {
|
if (!filename || vfs_file_is_local (filename)) {
|
||||||
execute_internal (command, filename);
|
execute_internal (command, filename);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -348,7 +348,7 @@ edit_cmd (void)
|
|||||||
void
|
void
|
||||||
edit_cmd_new (void)
|
edit_cmd_new (void)
|
||||||
{
|
{
|
||||||
do_edit ("");
|
do_edit (NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Invoked by F5. Copy, default to the other panel. */
|
/* Invoked by F5. Copy, default to the other panel. */
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user