From 10dea591f088a52648e08eb38a7158509125f458 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Wed, 20 Mar 2019 23:52:08 +0530 Subject: [PATCH] Fix #229 --- src/nnn.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/nnn.c b/src/nnn.c index a952514..5265217 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -4033,6 +4033,9 @@ int main(int argc, char *argv[]) ++opt; } + home = getenv("HOME"); + DPRINTF_S(home); + /* Parse bookmarks string */ if (!parsebmstr()) { fprintf(stderr, "%s\n", env_cfg[NNN_BMS]); @@ -4105,9 +4108,6 @@ int main(int argc, char *argv[]) idletimeout = xatoi(getenv(env_cfg[NNN_IDLE_TIMEOUT])); DPRINTF_U(idletimeout); - home = getenv("HOME"); - DPRINTF_S(home); - if (getenv(env_cfg[NNN_TRASH])) cfg.trash = 1;