aboutsummaryrefslogtreecommitdiffstats
path: root/src/nnn.c
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-04-05 21:45:30 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-04-05 21:45:30 +0530
commit1195dc86e0a125e38086021a9c9c2322e438c21c (patch)
tree16ee58e0c58ea83cc722811a246c991c3aafa43e /src/nnn.c
parent078d05dc7a0e3ae331a4eaae07a644fe9cde56ee (diff)
downloadnnn-1195dc86e0a125e38086021a9c9c2322e438c21c.tar.gz
Remove redundant calls
Diffstat (limited to 'src/nnn.c')
-rw-r--r--src/nnn.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/nnn.c b/src/nnn.c
index f4224a1..9038954 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -221,7 +221,7 @@ typedef struct entry {
off_t size;
blkcnt_t blocks; /* number of 512B blocks allocated */
mode_t mode;
- ushort nlen; /* Length of file name; can be uchar (< NAME_MAX + 1) */
+ ushort nlen; /* Length of file name */
uchar flags; /* Flags specific to the file */
} *pEntry;
@@ -3719,13 +3719,10 @@ static void handle_archive(char *fpath, const char *dir, char op)
arg[1] = op;
}
- if (op == 'x') { /* extract */
+ if (op == 'x') /* extract */
spawn(util, arg, fpath, dir, F_NORMAL);
- } else { /* list */
- exitcurses();
+ else /* list */
get_output(NULL, 0, util, arg, fpath, TRUE);
- refresh();
- }
}
static char *visit_parent(char *path, char *newpath, int *presel)