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>
mc dir1 dir2
The bug: order of parameters assignment depends on current_is_left
option in panels.ini file: if current_is_left=0, then dir1 is opened
in the left panel, dir2 in the right one. If current_is_left=1,
then dir1 is opened in the right panel, dir2 in the left one.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
* 2780_cleanup:
(mc_setup_by_args): fixed memory leaks.
(reread_cmd): use vfs_path_cmp() to compare dirs.
(do_load_dir): use vfs_path_t as a path handle.
README.fish: fixed location of user scripts.
Use new-style VFS prefixes.
(nice_cd): use new-style VFS prefixes.
(input_history_strip_password): actually url is not the pointer to constant.
Fixed mouse handling in WPanel widget.
(vfs_expare): changed argument type from int to gboolean.
(vfs_url_split): optimized to get rid of multiple string length caclulation.
(check_for_default): minor optimization and change return value.
Fix of viewer status bar draw.
(resolve_symlinks): use (vfs_path_t *) as argument.
(tty_draw_box): do nothing if width or heigth of box is less than 1.
(vfs_path_element_clone): ret rid of extra actions.
(vfs_get_raw_current_dir): return pointer to constant.
g_dirname and g_basename function are deprecated since glib-2.2.
Ticket #2780: cleanup before 4.8.3 release.
1) login to any ftp or fish resource
2) select ftp/fish entry and change current path
3) go back to old path
4) press Ctrl+X A (open "Active VFS directories" dialog)
Expected result: should be correct path to current VFS path
Actual result: path is incorrect.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
How to reproduce:
* mkdir -p a/b/c
* touch a/b/c/d
* ln -s d a/b/c/e
* tar -cf bad.tar a
* rm -rf a
* cd bad.tar/utar://a/b/c
Expected result: 'e' should be valid symlink to 'd'
Actual result: 'e' looks like broken link
Signed-off-by: Slava Zanko <slavazanko@gmail.com>