static void remote_cd(view_t *view, const char path[], int handle) { char buf[PATH_MAX + 1]; if(view->explore_mode) { view_leave_mode(); } if(view == other_view && vle_mode_is(VIEW_MODE)) { view_leave_mode(); } if(curr_stats.preview.on && (handle || view == other_view)) { qv_toggle(); } copy_str(buf, sizeof(buf), path); exclude_file_name(buf); (void)cd(view, view->curr_dir, buf); check_path_for_file(view, path, handle); }
static void remote_cd(FileView *view, const char *path, int handle) { char buf[PATH_MAX]; if(view->explore_mode) leave_view_mode(); if(view == other_view && get_mode() == VIEW_MODE) leave_view_mode(); if(curr_stats.view) toggle_quick_view(); snprintf(buf, sizeof(buf), "%s", path); exclude_file_name(buf); (void)cd(view, view->curr_dir, buf); check_path_for_file(view, path, handle); }