Steps to reproduce:
1. traverse through some directories,
2. press alt-y multiple times,
3. press alt-u multiple times,
4. press alt-y again a few times,
5. press alt-shift-h (notice no dirs to forward to), press esc,
6. press alt-u - nothing happens.
Initial step: (directory_history_add): make static and use vfs_path_t as argument.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Steps to reproduce:
* cd ftp://ftp.gnome.org/
* Run "cd" in the panel where the remote site is open
* cd ftp://ftp.kernel.org/
Actual result: The directory content from ftp.gnome.org FTP-server.
Expected results: The directory content from kernel.org FTP-server.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
* 2814_viewer_next_prev:
Change obtaining of working dir.
Clean up stuff that is not used anymore.
Ticket #2814: handle CK_FileNext/CK_FilePrev inside mcviewer.
Currently, dialog itself doesn't handle mouse events. It just
resends mouse event to each its widget. If we can several overlapped
widgets (especially, menu bar), there is some problem to decide which
widget must get event at first.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
* 2118_mcext_enhancement:
lib/vfs/interface.c: Added checking if super->path_element is not NULL
Use xdg-open by default in mc.ext.in if present to open files, fallback on current scheme otherwise.
src/filemanager/ext.c: Added ability to export global variables to external programs called from mc.ext file.
src/filemanager/ext.c: Code optimization. avoid few actions while %cd called from ext-file.
Ticket #2118: split exec_extention() function to few functions.
sys/param.h needs to be included before sys/mount.h on FreeBSD 6,
otherwise compiling fails with undefined identifier NGROUPS.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
* 2795_search_hex_zero_pattern:
Don't mix mc_search_cb_ret_t and int as result of search callback.
Ticket #2795: hex search: can't find 00 (zeroes) in patterns.
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>