Ticket #2783 (closed defect: fixed)
directories opening in the wrong panel
Reported by: | tempUser | Owned by: | andrew_b |
---|---|---|---|
Priority: | major | Milestone: | 4.8.4 |
Component: | mc-core | Version: | 4.8.3 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Branch state: | merged | Votes for changeset: | committed-master committed-stable |
Description
$ mc --help
mc [OPTION...] [+number] [this_dir] [other_panel_dir]
According to this, if i do, say
$ mc / /tmp
/ should open in the left pane, and /tmp should open in the right pane. But with the latest version, they are opening in the opposite panes, i.e., the one which should open in the left pane is opening in the right, and vice versa.
$ LC_MESSAGES=C mc -V
GNU Midnight Commander 4.8.3
Built with GLib 2.30.2
Using the S-Lang library with terminfo database
With builtin Editor
With subshell support as default
With support for background operations
With mouse support on xterm and Linux console
With support for X11 events
With internationalization support
With multiple codepages support
Virtual File Systems: cpiofs, tarfs, sfs, extfs, ftpfs, fish, smbfs
Data types: char: 8; int: 32; long: 32; void *: 32; size_t: 32; off_t: 64;
$ mc --configure-options
'--prefix=/usr' '--sysconfdir=/etc' '--mandir=/usr/share/man' '--enable-background' '--enable-charset' '--enable-largefile' '--with-edit' '--with-gpm-mouse' '--with-mmap' '--enable-vfs-smb' '--with-screen=slang' '--with-subshell' '--with-vfs' '--with-x' '--without-debug' '--without-gnome' '--without-included-gettext' '--libexecdir=/usr/lib' 'CFLAGS=-march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu'
Attachments
Change History
comment:3 Changed 13 years ago by tempUser
Hmm.. i backed up panels.ini, and launched mc again, and this time it worked fine. Seems like a setting there was causing this problem.
I have attached a diff file, showing the difference between the previous panels.ini file, and a fresh one.
comment:4 Changed 13 years ago by andrew_b
- Owner set to andrew_b
- Status changed from new to accepted
- Milestone changed from Future Releases to 4.8.4
Thanks!
@@ -28,5 +28,5 @@ user_status3=half type name | size | per user_mini_status=0 [Dirs] -current_is_left=0 -other_dir=/home/user +current_is_left=1 +other_dir=/home/user/downloads
current_is_left is the main difference. First argument is applied to the current panel, but should to left one.
comment:5 Changed 13 years ago by andrew_b
- Keywords stable-candidate added
- Branch state changed from no branch to on review
Branch: 2783_dir_panel_order (parent: master).
changeset:eb5f9e05432b3adab980ab4a4778992e11b299e3
comment:7 Changed 13 years ago by slavazanko
- Votes for changeset changed from angel_il to angel_il slavazanko
- Branch state changed from on review to approved
comment:8 Changed 13 years ago by andrew_b
- Status changed from accepted to testing
- Keywords stable-candidate removed
- Votes for changeset changed from angel_il slavazanko to committed-master committed-stable
- Resolution set to fixed
- Branch state changed from approved to merged
Merged to master: [4e8faef03e82927796e6b194d22a6990a1e50656].
Merged to 4.8.1-stable: [fbbd744c9ef1e29a5a5b8fe3f66ce5bedc93c89f]
comment:9 Changed 13 years ago by andrew_b
- Status changed from testing to closed
- Summary changed from directories opening in the wrong pane to directories opening in the wrong panel
comment:10 Changed 13 years ago by andrew_b
- Status changed from closed to reopened
- Votes for changeset committed-master committed-stable deleted
- Resolution fixed deleted
- Branch state changed from merged to no branch
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.x. 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
- if mc start as mc dir dir2, dir1 is opened in the left panel, dir2 in the right one.
- if mc starts as mc (without dir1 and dir2), active (right) panel contains working directory, other (left) one contains other_dir from panel.ini.
- if mc start as mc dir1, dir1 is opened in the left panel, right panel contains working directory.
comment:11 Changed 13 years ago by andrew_b
- Keywords stable-candidate added
- Branch state changed from no branch to on review
Branch: 2783_panel_dir_fix (parent: master).
changeset:0db03f65703010ae0d518391eff2f47b49fd4b7e
comment:13 Changed 13 years ago by angel_il
- Votes for changeset changed from slavazanko to slavazanko angel_il
- Branch state changed from on review to approved
comment:14 Changed 13 years ago by andrew_b
- Status changed from reopened to closed
- Keywords stable-candidate removed
- Votes for changeset changed from slavazanko angel_il to committed-master committed-stable
- Resolution set to fixed
- Branch state changed from approved to merged
Merged to master: [48bd62f9bcb5654a80619d62529dd1fa8dc0768a].
Merged to 4.8.1-stable: [cb261be463b5a2d4f470ba0e492c1dc954ee5a6d].
Cannot confirm. Works as expected for me.