mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Do not open current dir in nez context when extracting archive
This commit is contained in:
parent
96cbb4ff84
commit
e8f0c53287
|
@ -4291,7 +4291,8 @@ static bool handle_archive(char *fpath /* in-out param */, char op)
|
||||||
printwait(messages[MSG_CANCEL], NULL);
|
printwait(messages[MSG_CANCEL], NULL);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
/* Do not create smart context for current dir */
|
||||||
|
if (!(*outdir == '.' && outdir[1] == '\0')) {
|
||||||
if (!xmktree(outdir, TRUE) || (chdir(outdir) == -1)) {
|
if (!xmktree(outdir, TRUE) || (chdir(outdir) == -1)) {
|
||||||
printwarn(NULL);
|
printwarn(NULL);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
@ -4300,6 +4301,7 @@ static bool handle_archive(char *fpath /* in-out param */, char op)
|
||||||
outdir = realpath(".", NULL);
|
outdir = realpath(".", NULL);
|
||||||
x_to = TRUE;
|
x_to = TRUE;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (getutil(utils[UTIL_ATOOL])) {
|
if (getutil(utils[UTIL_ATOOL])) {
|
||||||
util = utils[UTIL_ATOOL];
|
util = utils[UTIL_ATOOL];
|
||||||
|
|
Loading…
Reference in a new issue