]> git.pld-linux.org Git - packages/mc.git/commitdiff
- alt-o works as in old versions before maintainers screwed it with a little
authorJan Rękorajski <baggins@pld-linux.org>
Tue, 9 Sep 2003 17:42:09 +0000 (17:42 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  help from mmazur

Changed files:
    mc-mo.patch -> 1.2

mc-mo.patch

index 043abcb660d3c83957b278a9884de04a0d07293e..01d5ca531c6db94e2f89a6064e275d104aac7b2c 100644 (file)
@@ -1,22 +1,44 @@
-diff -urN mc-4.5.55.orig/src/screen.c mc-4.5.55/src/screen.c
---- mc-4.5.55.orig/src/screen.c        Sun Aug 19 19:33:26 2001
-+++ mc-4.5.55/src/screen.c     Wed Mar  6 00:14:17 2002
-@@ -2195,17 +2195,12 @@
-     if (get_other_type () != view_listing)
-       return;
+diff -ur mc-4.6.0-pre2/src/screen.c mc-4.6.0-pre1/src/screen.c
+--- mc-4.6.0-pre2/src/screen.c 2002-12-26 16:20:51.000000000 +0000
++++ mc-4.6.0-pre1/src/screen.c 2002-08-18 22:07:09.000000000 +0000
+@@ -1974,25 +2013,26 @@
+     return do_enter_on_file_entry (selection (panel));
+ }
  
--    if (!S_ISDIR (panel->dir.list [panel->selected].buf.st_mode))
--      new_dir = concat_dir_and_file (panel->cwd, "..");
--    else
--      new_dir = concat_dir_and_file (panel->cwd, panel->dir.list [panel->selected].fname);
-+    new_dir = concat_dir_and_file (panel->cwd, ".");
+-/*
+- * 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)
+ {
+-    if (get_other_type () != view_listing) {
+-      set_display_type (get_other_index (), view_listing);
+-    }
++    char *new_dir;
  
-     change_panel ();
-     do_cd (new_dir, cd_exact);
-     change_panel ();
+-    do_panel_cd (opanel, cpanel->cwd, cd_exact);
++    if (get_other_type () != view_listing)
++      return;
  
--    move_down (panel);
--
-     g_free (new_dir);
+-    /* try to select current filename on the other panel */
+-    if (!panel->is_panelized) {
+-      try_to_select (other_panel, selection (panel)->fname);
+-    }
++    if (!S_ISDIR (panel->dir.list [panel->selected].buf.st_mode))
++      new_dir = concat_dir_and_file (panel->cwd, "..");
++    else
++      new_dir = concat_dir_and_file (panel->cwd, panel->dir.list [panel->selected].fname);
++
++    change_panel ();
++    do_cd (new_dir, cd_exact);
++    change_panel ();
++
++    move_down (panel);
++
++    g_free (new_dir);
  }
  
+ static void
This page took 0.18633 seconds and 4 git commands to generate.