diff --git a/src/ChangeLog b/src/ChangeLog index 9b8d68ff8..bca0c41c4 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2002-12-19 Pavel Roskin + * screen.c (chdir_other_panel): Use do_panel_cd() on the + opposite panel instead of changing the current panel twice. + * main.c (make_panels_dirty): Preserve the cursor position. 2002-12-18 Tomas Styblo diff --git a/src/screen.c b/src/screen.c index c6dabd877..0c8bba624 100644 --- a/src/screen.c +++ b/src/screen.c @@ -1993,9 +1993,7 @@ chdir_other_panel (WPanel *panel) set_display_type (get_other_index (), view_listing); } - change_panel (); - do_cd (panel->cwd, cd_exact); - change_panel (); + do_panel_cd (opanel, cpanel->cwd, cd_exact); /* try to select current filename on the other panel */ if (!panel->is_panelized) {