]> Sergey Matveev's repositories - nnn.git/commitdiff
Change env var name
authorArun Prakash Jana <engineerarun@gmail.com>
Tue, 15 Jan 2019 05:21:06 +0000 (10:51 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Tue, 15 Jan 2019 05:21:06 +0000 (10:51 +0530)
README.md
nnn.1
src/nnn.c

index 88b36c814840a56e023a0bb8ceaa267bea93b1bf..2d94facce8c546b7f13e624259933943c244ec3e 100644 (file)
--- a/README.md
+++ b/README.md
@@ -540,7 +540,7 @@ By default in OpenBSD & FreeBSD, `stty` maps <kbd>^Y</kbd> to `DSUSP`. This mean
 
 In order to disable opening files on accidental navigation key (<kbd>→</kbd> or <kbd>l</kbd>) press:
 
-    export NNN_NO_FILE_OPEN_ON_NAV=1
+    export NNN_RESTRICT_NAV_OPEN=1
 
 Use <kbd>Enter</kbd> to open files.
 
diff --git a/nnn.1 b/nnn.1
index d3e97e0f5b12d1df42a7c1810224a09622032e33..d30e6f73ea122fa545cff983e865a370a9e942ba 100644 (file)
--- a/nnn.1
+++ b/nnn.1
@@ -307,9 +307,9 @@ files.
     export NNN_NO_AUTOSELECT=1
 .Ed
 .Pp
-\fBNNN_NO_FILE_OPEN_ON_NAV:\fR disable file open on \fBRight\fR or \fBl\fR keys (\fBEnter\fR opens files).
+\fBNNN_RESTRICT_NAV_OPEN:\fR disable file open on \fBRight\fR or \fBl\fR keys (\fBEnter\fR opens files).
 .Bd -literal
-    export NNN_NO_FILE_OPEN_ON_NAV=1
+    export NNN_RESTRICT_NAV_OPEN=1
 .Ed
 .Pp
 \fBNNN_RESTRICT_0B:\fR restrict opening 0-byte files due to unexpected behaviour; use \fIedit\fR or \fIopen with\fR to open the file.
index 723a636b575455031829c824309d2d7e6072c2c6..67eb9bcfbf6a63fefa4733fd5df85f3b3497cf62 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -2171,7 +2171,7 @@ static bool show_help(char *path)
        if (cfg.autoselect)
                dprintf(fd, "NNN_NO_AUTOSELECT: 1\n");
        if (cfg.nonavopen)
-               dprintf(fd, "NNN_NO_FILE_OPEN_ON_NAV: 1\n");
+               dprintf(fd, "NNN_RESTRICT_NAV_OPEN: 1\n");
        if (cfg.restrict0b)
                dprintf(fd, "NNN_RESTRICT_0B: 1\n");
        if (!cfg.filter_re)
@@ -3791,7 +3791,7 @@ int main(int argc, char *argv[])
                cfg.autoselect = 0;
 
        /* Disable opening files on right arrow and `l` */
-       if (getenv("NNN_NO_FILE_OPEN_ON_NAV"))
+       if (getenv("NNN_RESTRICT_NAV_OPEN"))
                cfg.nonavopen = 1;
 
        /* Restrict opening of 0-byte files */