]> git.pld-linux.org Git - packages/mc.git/commitdiff
- old behaviour on alt-o
authorJan Rękorajski <baggins@pld-linux.org>
Fri, 21 Nov 2003 20:06:41 +0000 (20:06 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- don't touch that, read the log

Changed files:
    mc-mo.patch -> 1.4

mc-mo.patch

index fb7719bf3cb1f15279183faf433a819a59077fa4..01d5ca531c6db94e2f89a6064e275d104aac7b2c 100644 (file)
@@ -1,17 +1,32 @@
-diff -urN mc-4.6.0/src/screen.c mc-4.6.0.new/src/screen.c
---- mc-4.6.0/src/screen.c      2003-01-28 23:58:22.000000000 +0100
-+++ mc-4.6.0.new/src/screen.c  2003-09-27 08:33:09.000000000 +0200
-@@ -2009,6 +2009,28 @@
+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));
  }
  
+-/*
+- * 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_old (WPanel *panel)
-+{
+ chdir_other_panel (WPanel *panel)
+ {
+-    if (get_other_type () != view_listing) {
+-      set_display_type (get_other_index (), view_listing);
+-    }
 +    char *new_dir;
-+
+-    do_panel_cd (opanel, cpanel->cwd, cd_exact);
 +    if (get_other_type () != view_listing)
 +      return;
-+
+-    /* 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
@@ -24,17 +39,6 @@ diff -urN mc-4.6.0/src/screen.c mc-4.6.0.new/src/screen.c
 +    move_down (panel);
 +
 +    g_free (new_dir);
-+}
-+
-+static void
- chdir_to_readlink (WPanel *panel)
- {
-     char *new_dir;
-@@ -2090,6 +2112,7 @@
-     { ALT('s'),   start_search },     /* M-s not like emacs */
-     { XCTRL('t'), mark_file },
-     { ALT('o'),   chdir_other_panel },
-+    { ALT('i'),   chdir_other_panel_old },
-     { ALT('l'),   chdir_to_readlink },
-     { ALT('H'),   directory_history_list },
-     { KEY_F(13),  view_simple_cmd },
+ }
+ static void
This page took 0.030613 seconds and 4 git commands to generate.