mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
* screen.c (panel_callback): Revert last change, it has bad side
effects on the subshell.
This commit is contained in:
parent
6bdeafba4d
commit
8f4ca50c58
@ -1,3 +1,8 @@
|
||||
2002-07-20 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* screen.c (panel_callback): Revert last change, it has bad side
|
||||
effects on the subshell.
|
||||
|
||||
2002-07-19 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* dlg.c: Eliminate all useless x_* functions.
|
||||
|
14
src/screen.c
14
src/screen.c
@ -2202,15 +2202,13 @@ panel_callback (Dlg_head *h, WPanel *panel, int msg, int par)
|
||||
break;
|
||||
|
||||
case WIDGET_FOCUS:
|
||||
current_panel = panel;
|
||||
panel->active = 1;
|
||||
if (current_panel != panel) {
|
||||
current_panel = panel;
|
||||
if (mc_chdir (panel->cwd) != 0) {
|
||||
message (1, MSG_ERROR, _(" Cannot chdir to \"%s\" \n %s "),
|
||||
panel->cwd, unix_error_string (errno));
|
||||
} else
|
||||
subshell_chdir (panel->cwd);
|
||||
}
|
||||
if (mc_chdir (panel->cwd) != 0) {
|
||||
message (1, MSG_ERROR, _(" Cannot chdir to \"%s\" \n %s "),
|
||||
panel->cwd, unix_error_string (errno));
|
||||
} else
|
||||
subshell_chdir (panel->cwd);
|
||||
|
||||
show_dir (panel);
|
||||
focus_select_item (panel);
|
||||
|
Loading…
Reference in New Issue
Block a user