aboutsummaryrefslogtreecommitdiffstats
path: root/src/nnn.c
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-11-24 02:13:27 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-11-24 02:13:27 +0530
commit5d0af863b530c681e70ebb090294cbe682176482 (patch)
tree412bccafd162026e50897d26aee961f94f59f6e1 /src/nnn.c
parentca7405311f78429a0ab8810fb06420713812caa3 (diff)
downloadnnn-5d0af863b530c681e70ebb090294cbe682176482.tar.gz
Set hovered and file as
Diffstat (limited to 'src/nnn.c')
-rw-r--r--src/nnn.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 089bbeb..0b35ae7 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -516,7 +516,7 @@ static const char * const envs[] = {
"VISUAL",
"EDITOR",
"PAGER",
- "NNN",
+ "nnn",
};
#ifdef __linux__
@@ -5086,9 +5086,9 @@ nochange:
if (tmp[0] == '_' && tmp[1]) {
xstrlcpy(newpath, ++tmp, PATH_MAX);
- if (is_suffix(newpath, " $NNN")) {
+ if (is_suffix(newpath, " $nnn")) {
tmp = (ndents ? dents[cur].name : NULL);
- /* Set `\0` to clear ' $NNN' suffix */
+ /* Set `\0` to clear ' $nnn' suffix */
newpath[strlen(newpath) - 5] = '\0';
} else
tmp = NULL;