Ticket #2783: when right panel is active, panel paths are swapped at each mc start.
commit48bd62f9bcb5654a80619d62529dd1fa8dc0768a
authorAndrew Borodin <aborodin@vmail.ru>
Tue, 1 May 2012 11:58:09 +0000 (1 15:58 +0400)
committerAndrew Borodin <aborodin@vmail.ru>
Fri, 4 May 2012 14:19:44 +0000 (4 18:19 +0400)
treefa16b6d21e591b9e306f55bbc74d9b019533be71
parentb4ba1504d75e73de1e80c0c7b62ff3e007807d54
Ticket #2783: when right panel is active, panel paths are swapped at each mc start.

How to reproduce.
1. Goto ~. Run mc. Enable autosave panels setup before exit. Save options.
2.  Open ~ dir in the left panel, / in the right one. Make right panel active.
3. Close mc.
4. With mc-wrapper, following is performed:
4.1. Run mc. Now ~ in the right panel, / in the left one.
4.2. Close mc.
4.3. Run mc. Now ~ in the left panel again, / in the right one.
4.4. ...and so on.
5. Without mc-wrapper, following is performed:
5.1. Run mc. Now ~ in both panels.

Expected behavior with current_is_left=false

1. if mc start as mc dir dir2, dir1 is opened in the left panel, dir2 in
the right one.
2. if mc starts as mc (without dir1 and dir2), active (right)  panel
contains working directory, other (left) one contains other_dir from
panel.ini.
3. if mc start as mc dir1, dir1 is opened in the left panel, right panel
contains working directory.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
src/filemanager/midnight.c
src/setup.c