Skip to content

Commit

Permalink
Fix always archiving current file (#396)
Browse files Browse the repository at this point in the history
  • Loading branch information
KlzXS authored and jarun committed Dec 4, 2019
1 parent cc36aa8 commit 809b188
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/nnn.c
Original file line number Diff line number Diff line change
Expand Up @@ -5043,9 +5043,9 @@ static void browse(char *ipath, const char *session)

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:
Expand Down

0 comments on commit 809b188

Please sign in to comment.