aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--src/nnn.c7
2 files changed, 5 insertions, 4 deletions
diff --git a/README.md b/README.md
index c1bc644..82a0aef 100644
--- a/README.md
+++ b/README.md
@@ -65,6 +65,7 @@ It runs smoothly on the Pi, [Termux](https://www.youtube.com/watch?v=AbaauM7gUJw
- No FPU usage (all integer maths, even for file size)
- Minimizes screen refresh with fast line redraws
- Tiny binary (typically around 100KB)
+ - 1-column mode for smaller terminals and form factors
- Portable
- Language-agnostic plugins
- Static binary available (no need to install)
@@ -72,6 +73,7 @@ It runs smoothly on the Pi, [Termux](https://www.youtube.com/watch?v=AbaauM7gUJw
- Compile in/out features with make variables
- No config file, minimal config with sensible defaults
- Widely available on many packagers
+ - Touch enabled, comfortable on handhelds too!
- Unicode support
- Quality
- Privacy-aware (no unconfirmed user data collection)
diff --git a/src/nnn.c b/src/nnn.c
index c6f75cb..a6220bb 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -3446,11 +3446,10 @@ static void printent(const struct entry *ent, uint namecols, bool sel)
ind = '*';
}
- if (ent->flags & HARD_LINK)
- pair = C_HRD;
-
if (!ent->size)
pair = C_UND;
+ else if (ent->flags & HARD_LINK)
+ pair = C_HRD;
else if (!pair)
pair = C_FIL;
break;
@@ -4975,7 +4974,7 @@ static int dentfill(char *path, struct entry **ppdents)
if (S_ISDIR(sb.st_mode))
dentp->flags |= DIR_OR_LINK_TO_DIR;
#if !(defined(__sun) || defined(__HAIKU__)) /* no d_type */
- } else if (dp->d_type == DT_DIR || (dp->d_type == DT_LNK && S_ISDIR(sb.st_mode))) {
+ } else if (dp->d_type == DT_DIR || ((dp->d_type == DT_LNK || dp->d_type == DT_UNKNOWN) && S_ISDIR(sb.st_mode))) {
dentp->flags |= DIR_OR_LINK_TO_DIR;
#endif
}