* screen.c (panel_callback): Revert last change, it has bad side

effects on the subshell.
This commit is contained in:
Pavel Roskin 2002-07-20 08:32:53 +00:00
parent 6bdeafba4d
commit 8f4ca50c58
2 changed files with 11 additions and 8 deletions

View File

@ -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.

View File

@ -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);