void hotlist_cmd (void) { char *target; target = hotlist_show (LIST_HOTLIST); if (!target) return; if (get_current_type () == view_tree) tree_chdir (the_tree, target); else { vfs_path_t *deprecated_vpath; char *cmd; deprecated_vpath = vfs_path_from_str_flags (target, VPF_USE_DEPRECATED_PARSER); cmd = g_strconcat ("cd ", vfs_path_as_str (deprecated_vpath), (char *) NULL); vfs_path_free (deprecated_vpath); do_cd_command (cmd); g_free (cmd); } g_free (target); }
void vfs_list (void) { char *target; target = hotlist_show (LIST_VFSLIST); if (!target) return; if (!do_cd (target, cd_exact)) message (D_ERROR, MSG_ERROR, _("Cannot change directory")); g_free (target); }
void vfs_list (void) { char *target; vfs_path_t *target_vpath; target = hotlist_show (LIST_VFSLIST); if (!target) return; target_vpath = vfs_path_from_str (target); if (!do_cd (target_vpath, cd_exact)) message (D_ERROR, MSG_ERROR, _("Cannot change directory")); vfs_path_free (target_vpath); g_free (target); }
void hotlist_cmd (void) { char *target; target = hotlist_show (LIST_HOTLIST); if (!target) return; if (get_current_type () == view_tree) tree_chdir (the_tree, target); else { char *cmd = g_strconcat ("cd ", target, (char *) NULL); do_cd_command (cmd); g_free (cmd); } g_free (target); }