* 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>
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.