cd = FALSE;
goto begin;
}
+ case SEL_CD: // fallthrough
+ case SEL_COPY:
+ if (!xdiraccess(plgpath)) {
+ printwarn(&presel);
+ goto nochange;
+ }
+ endselection(FALSE);
+ tmp = sel == SEL_CD ? "!_nnn-cd*" : "!_nnn-cp";
+ if (!run_plugin(&path, tmp, (ndents ? pdents[cur].name : NULL),
+ &lastname, &lastdir)) {
+ printwait(messages[MSG_FAILED], &presel);
+ goto nochange;
+ }
+ copycurname();
+ setdirwatch();
+ goto begin;
case SEL_PLUGIN:
/* Check if directory is accessible */
if (!xdiraccess(plgpath)) {