nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 465d619b7f59684b648f8210f8780f70a9fd6e99
parent 6dc4176f5790ed1fad722f111cf71383bd33f660
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Wed, 25 Apr 2018 23:25:40 +0530

Show cp file when NNN_NO_X is set

Diffstat:
Mnnn.c | 7+++----
1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/nnn.c b/nnn.c @@ -446,11 +446,10 @@ static size_t xstrlen(const char *s) { static size_t len; + len = 0; if (!s) - return 0; - - len = 0; + return len; while (*s) ++len, ++s; @@ -2021,7 +2020,7 @@ show_help(char *path) if (copier) dprintf(fd, "NNN_COPIER: %s\n", copier); if (getenv("NNN_NO_X")) - dprintf(fd, "NNN_NO_X: %s\n", getenv("NNN_NO_X")); + dprintf(fd, "NNN_NO_X: %s (%s)\n", getenv("NNN_NO_X"), g_cppath); if (getenv("NNN_SCRIPT")) dprintf(fd, "NNN_SCRIPT: %s\n", getenv("NNN_SCRIPT")); if (getenv("NNN_SHOW_HIDDEN"))