aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar KlzXS <azszwymmvqdi@yahoo.com>2019-12-04 13:55:41 +0100
committerGravatar Mischievous Meerkat <engineerarun@gmail.com>2019-12-04 18:25:41 +0530
commit809b1885fb61b9f00d6c756966a131de9f2ad863 (patch)
tree511b1c8da9d9e6a1a1b18cde78d84190e7b715ce /src
parentcc36aa8d49030e5b0d157166727cb8b1606949d2 (diff)
downloadnnn-809b1885fb61b9f00d6c756966a131de9f2ad863.tar.gz
Fix always archiving current file (#396)
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 2c1cd34..7b4baa7 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -5043,9 +5043,9 @@ nochange:
get_archive_cmd(cmd, tmp);
- (r == 'y' || r == 'Y') ? archive_selection(cmd, tmp, path)
- : spawn(cmd, tmp, dents[cur].name,
- path, F_NORMAL | F_MULTI);
+ (r == 's') ? archive_selection(cmd, tmp, path)
+ : spawn(cmd, tmp, dents[cur].name,
+ path, F_NORMAL | F_MULTI);
break;
}
case SEL_OPENWITH: