aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sdn.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/sdn.cpp b/sdn.cpp
index 0a5f2ee..05e9cc2 100644
--- a/sdn.cpp
+++ b/sdn.cpp
@@ -765,7 +765,8 @@ fun reload () {
while (auto f = readdir (dir)) {
string name = f->d_name;
// Two dots are for navigation but this ain't as useful
- if (name != "." && (name == ".." || name[0] != '.' || g.show_hidden))
+ if (name != "." && (name != ".." || g.cwd != "/")
+ && (name[0] != '.' || g.show_hidden))
g.entries.push_back (make_entry (f));
}
closedir (dir);