aboutsummaryrefslogtreecommitdiffstats
path: root/src/nnn.c
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-07-14 22:32:50 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-07-14 22:32:50 +0530
commit1388b9ea71653688974c519120bb43048314b6b4 (patch)
tree38eef6ea7c0e6772fdb07b4b8dbf883c06badf74 /src/nnn.c
parentba099b6818cdedaefe8f0e850091d25e1d493aed (diff)
downloadnnn-1388b9ea71653688974c519120bb43048314b6b4.tar.gz
Remove unused variable
Diffstat (limited to 'src/nnn.c')
-rw-r--r--src/nnn.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/nnn.c b/src/nnn.c
index f1bad2c..ce4dae2 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -216,7 +216,7 @@ typedef struct {
uint copymode : 1; /* Set when copying files */
uint showdetail : 1; /* Clear to show fewer file info */
uint ctxactive : 1; /* Context active or not */
- uint reserved : 7;
+ uint reserved : 8;
/* The following settings are global */
uint curctx : 2; /* Current context number */
uint dircolor : 1; /* Current status of dir color */
@@ -231,7 +231,6 @@ typedef struct {
uint filter_re : 1; /* Use regex filters */
uint wild : 1; /* Do not sort entries on dir load */
uint trash : 1; /* Move removed files to trash */
- uint badexit : 1; /* Program quit due to dir removed or moved */
} settings;
/* Contexts or workspaces */
@@ -271,7 +270,6 @@ static settings cfg = {
1, /* filter_re */
0, /* wild */
0, /* trash */
- 0, /* badexit */
};
static context g_ctx[CTX_MAX] __attribute__ ((aligned));
@@ -4800,9 +4798,6 @@ int main(int argc, char *argv[])
browse(initpath);
exitcurses();
- if (cfg.badexit)
- xerror();
-
#ifndef NORL
write_history(NULL);
#endif