summaryrefslogtreecommitdiffstats
path: root/source/ap/mc/changeset_446748619b5cb77ea63360a81bb16cd2dd2caff7.diff
blob: 080d6276f0b047360cb2c963aad40b0b7fad2f79 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
Index: doc/man/mc.1.in
===================================================================
--- doc/man/mc.1.in	(revision 6da546bcf3a09b7710bc3b69d38e736e3273c34b)
+++ doc/man/mc.1.in	(revision 446748619b5cb77ea63360a81bb16cd2dd2caff7)
@@ -173,9 +173,10 @@
 .PP
 If both paths are specified, the first path name is the directory to show
-in the left panel; the second path name is the directory to be shown in
-the right panel.
+in the active panel; the second path name is the directory to be shown in
+the other panel.
 .PP
 If one path is specified, the path name is the directory to show
-in the active panel; current directory is shown in the passive panel.
+in the active panel; value of "other_dir" from panels.ini is the directory
+to be shown in the passive panel.
 .PP
 If no paths are specified, current directory is shown in the active panel;
Index: doc/man/ru/mc.1.in
===================================================================
--- doc/man/ru/mc.1.in	(revision 6da546bcf3a09b7710bc3b69d38e736e3273c34b)
+++ doc/man/ru/mc.1.in	(revision 446748619b5cb77ea63360a81bb16cd2dd2caff7)
@@ -150,11 +150,12 @@
 .PP
 Если в командной строке указаны два каталога, первый будет отображаться
-в левой панели, второй \- в правой.
+в активной панели, второй \- в другой панели.
 .PP
 Если указан только один каталог, он будет отображён в активной панели,
-во второй панели будет отображён текущий каталог.
+во второй панели будет отображён каталог, указанный в параметре "other_dir"
+в файле panels.ini.
 .PP
 Если каталоги не указаны, в активной панели будет отображён текущий каталог,
-а во второй панели \- каталог, указанный в параметре "other_dir" в файла panels.ini.
+а во второй панели \- каталог, указанный в параметре "other_dir" в файле panels.ini.
 .\"NODE "Overview"
 .SH "Главное окно программы"
Index: src/filemanager/midnight.c
===================================================================
--- src/filemanager/midnight.c	(revision b451e8d13ddf89f1b1a00b1c2f240e4deaf8abe7)
+++ src/filemanager/midnight.c	(revision 446748619b5cb77ea63360a81bb16cd2dd2caff7)
@@ -585,13 +585,13 @@
      * 'mc' (no arguments):            mc_run_param0 == NULL, mc_run_param1 == NULL
      *                                 active panel uses current directory
-     *                                 passive panel uses "other_dir" from ini
+     *                                 passive panel uses "other_dir" from panels.ini
      *
      * 'mc dir1 dir2' (two arguments): mc_run_param0 != NULL, mc_run_param1 != NULL
-     *                                 left panel uses mc_run_param0
-     *                                 right panel uses mc_run_param1
+     *                                 active panel uses mc_run_param0
+     *                                 passive panel uses mc_run_param1
      *
      * 'mc dir1' (single argument):    mc_run_param0 != NULL, mc_run_param1 == NULL
-     *                                 active panel uses current directory
-     *                                 passive panel uses mc_run_param0
+     *                                 active panel uses mc_run_param0
+     *                                 passive panel uses "other_dir" from panels.ini
      */
 
@@ -620,6 +620,6 @@
         {
             /* one argument */
-            current_dir = NULL; /* assume current dir */
-            other_dir = (char *) mc_run_param0;
+            current_dir = (char *) mc_run_param0;
+            other_dir = saved_other_dir;        /* from ini */
         }
     }
@@ -641,12 +641,12 @@
         {
             /* two arguments */
-            current_dir = mc_run_param1;
-            other_dir = (char *) mc_run_param0;
+            current_dir = (char *) mc_run_param0;
+            other_dir = mc_run_param1;
         }
         else                    /* mc_run_param0 != NULL && mc_run_param1 == NULL */
         {
             /* one argument */
-            current_dir = NULL; /* assume current dir */ ;
-            other_dir = (char *) mc_run_param0;
+            current_dir = (char *) mc_run_param0;
+            other_dir = saved_other_dir;        /* from ini */
         }
     }