aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 22b559e..8b3214c 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -3400,7 +3400,8 @@ static char get_ind(mode_t mode, bool perms, uchar *pair)
*pair = C_CHR;
return '\0';
default:
- *pair = C_UND;
+ if (!perms)
+ *pair = C_UND;
return '?';
}
}