From 9bdae2ff7c09e88cf52eb1f3b02b4b15f57be4fa Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Thu, 17 Mar 2005 22:40:11 +0000 Subject: [PATCH] * screen.c (chdir_other_panel): Prevent changing current directory. Remove incorrect comment. --- src/ChangeLog | 3 +++ src/screen.c | 10 +++------- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 65271fe34..9f0b927c9 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2005-03-17 Pavel Roskin + * screen.c (chdir_other_panel): Prevent changing current + directory. Remove incorrect comment. + * achown.c (update_permissions): Partly revert recent changes because they cause infinite recusion. diff --git a/src/screen.c b/src/screen.c index ee3a0192b..cbc0a406e 100644 --- a/src/screen.c +++ b/src/screen.c @@ -2013,12 +2013,6 @@ do_enter (WPanel *panel) return do_enter_on_file_entry (selection (panel)); } -/* - * Make the current directory of the current panel also the current - * directory of the other panel. Put the other panel to the listing - * mode if needed. If the current panel is panelized, the other panel - * doesn't become panelized. - */ static void chdir_other_panel (WPanel *panel) { @@ -2033,7 +2027,9 @@ chdir_other_panel (WPanel *panel) else new_dir = concat_dir_and_file (panel->cwd, panel->dir.list [panel->selected].fname); - do_panel_cd (other_panel, new_dir, cd_exact); + change_panel (); + do_cd (new_dir, cd_exact); + change_panel (); move_down (panel); -- 2.11.4.GIT