printwait(messages[MSG_CANCEL], NULL);
return FALSE;
}
-
- if (!xmktree(outdir, TRUE) || (chdir(outdir) == -1)) {
- printwarn(NULL);
- return FALSE;
+ /* Do not create smart context for current dir */
+ if (!(*outdir == '.' && outdir[1] == '\0')) {
+ if (!xmktree(outdir, TRUE) || (chdir(outdir) == -1)) {
+ printwarn(NULL);
+ return FALSE;
+ }
+ /* Copy the new dir path to open it in smart context */
+ outdir = realpath(".", NULL);
+ x_to = TRUE;
}
- /* Copy the new dir path to open it in smart context */
- outdir = realpath(".", NULL);
- x_to = TRUE;
}
if (getutil(utils[UTIL_ATOOL])) {