mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 13:51:31 +00:00
Show cp file when NNN_NO_X is set
This commit is contained in:
parent
6dc4176f57
commit
465d619b7f
7
nnn.c
7
nnn.c
|
@ -446,11 +446,10 @@ static size_t
|
||||||
xstrlen(const char *s)
|
xstrlen(const char *s)
|
||||||
{
|
{
|
||||||
static size_t len;
|
static size_t len;
|
||||||
|
len = 0;
|
||||||
|
|
||||||
if (!s)
|
if (!s)
|
||||||
return 0;
|
return len;
|
||||||
|
|
||||||
len = 0;
|
|
||||||
|
|
||||||
while (*s)
|
while (*s)
|
||||||
++len, ++s;
|
++len, ++s;
|
||||||
|
@ -2021,7 +2020,7 @@ show_help(char *path)
|
||||||
if (copier)
|
if (copier)
|
||||||
dprintf(fd, "NNN_COPIER: %s\n", copier);
|
dprintf(fd, "NNN_COPIER: %s\n", copier);
|
||||||
if (getenv("NNN_NO_X"))
|
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"))
|
if (getenv("NNN_SCRIPT"))
|
||||||
dprintf(fd, "NNN_SCRIPT: %s\n", getenv("NNN_SCRIPT"));
|
dprintf(fd, "NNN_SCRIPT: %s\n", getenv("NNN_SCRIPT"));
|
||||||
if (getenv("NNN_SHOW_HIDDEN"))
|
if (getenv("NNN_SHOW_HIDDEN"))
|
||||||
|
|
Loading…
Reference in a new issue