src/nnn.c | 7 +------ diff --git a/src/nnn.c b/src/nnn.c index f1bad2c771c99e59ee3954c02870cca18d19e682..ce4dae22166b7e71e036c0d01ec4e84b7231d30d 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -216,7 +216,7 @@ uint showhidden : 1; /* Set to show hidden files */ 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 @@ uint runctx : 2; /* The context in which plugin is to be run */ 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 @@ 0, /* runctx */ 1, /* filter_re */ 0, /* wild */ 0, /* trash */ - 0, /* badexit */ }; static context g_ctx[CTX_MAX] __attribute__ ((aligned)); @@ -4799,9 +4797,6 @@ return _FAILURE; browse(initpath); exitcurses(); - - if (cfg.badexit) - xerror(); #ifndef NORL write_history(NULL);