mirror of
https://github.com/MidnightCommander/mc
synced 2025-03-31 20:22:57 +03:00
Report error if user presses enter on non-local vfs.
This commit is contained in:
parent
892585e1af
commit
c4dfdf5cee
@ -4,6 +4,10 @@ Fri Oct 16 12:10:56 1998 Pavel Machek <pavel@atrey.karlin.mff.cuni.cz>
|
|||||||
do_cd(). (Fixed error for here, but more such bugs are present in
|
do_cd(). (Fixed error for here, but more such bugs are present in
|
||||||
src/ tree. Or maybe move error checking into do_cd?)
|
src/ tree. Or maybe move error checking into do_cd?)
|
||||||
|
|
||||||
|
* command.c: warn user if he is pressing enter while on non-local
|
||||||
|
filesystem. (Prev. behaviour was fail silently to do anything,
|
||||||
|
which is _bad_.)
|
||||||
|
|
||||||
Mon Oct 12 22:47:53 1998 Pavel Machek <pavel@bug.ucw.cz>
|
Mon Oct 12 22:47:53 1998 Pavel Machek <pavel@bug.ucw.cz>
|
||||||
|
|
||||||
* file.c (copy_file_file): MCCTL_SETREMOTECOPY is no longer used
|
* file.c (copy_file_file): MCCTL_SETREMOTECOPY is no longer used
|
||||||
|
@ -250,7 +250,7 @@ static void do_view_cmd (WPanel *panel, int normal)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!do_cd (selection (panel)->fname, cd_exact))
|
if (!do_cd (selection (panel)->fname, cd_exact))
|
||||||
message_1s(1, MSG_ERROR, _("Could not change directory") );
|
message (1, MSG_ERROR, _("Could not change directory") );
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -712,7 +712,7 @@ void quick_chdir_cmd (void)
|
|||||||
tree_chdir (the_tree, target);
|
tree_chdir (the_tree, target);
|
||||||
else
|
else
|
||||||
if (!do_cd (target, cd_exact))
|
if (!do_cd (target, cd_exact))
|
||||||
message_1s(1, MSG_ERROR, _("Could not change directory") );
|
message (1, MSG_ERROR, _("Could not change directory") );
|
||||||
free (target);
|
free (target);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -726,7 +726,7 @@ void reselect_vfs (void)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
if (!do_cd (target, cd_exact))
|
if (!do_cd (target, cd_exact))
|
||||||
message_1s(1, MSG_ERROR, _("Could not change directory") );
|
message (1, MSG_ERROR, _("Could not change directory") );
|
||||||
free (target);
|
free (target);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -197,8 +197,11 @@ static int enter (WCommand *cmdline)
|
|||||||
char *command, *s;
|
char *command, *s;
|
||||||
int i, j;
|
int i, j;
|
||||||
|
|
||||||
if (!vfs_current_is_local ())
|
if (!vfs_current_is_local ()) {
|
||||||
|
message (1, MSG_ERROR, _(" You can not execute commands on non-local filesystems"));
|
||||||
|
|
||||||
return MSG_NOT_HANDLED;
|
return MSG_NOT_HANDLED;
|
||||||
|
}
|
||||||
command = xmalloc (strlen (cmd) + 1, "main, enter");
|
command = xmalloc (strlen (cmd) + 1, "main, enter");
|
||||||
command [0] = 0;
|
command [0] = 0;
|
||||||
for (i = j = 0; i < strlen (cmd); i ++){
|
for (i = j = 0; i < strlen (cmd); i ++){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user