diff options
author | Přemysl Janouch <p@janouch.name> | 2018-12-03 22:04:35 +0100 |
---|---|---|
committer | Přemysl Janouch <p@janouch.name> | 2018-12-03 22:04:35 +0100 |
commit | 315b662581f771ff521b2f826dede8470c082ed6 (patch) | |
tree | 07fdef586f63d0353007b40947e92ea99ecfb86b /sdn.cpp | |
parent | 4a2a49312b6c33bd73d338ca2744ab66a5cb7a6e (diff) | |
download | sdn-315b662581f771ff521b2f826dede8470c082ed6.tar.gz sdn-315b662581f771ff521b2f826dede8470c082ed6.tar.xz sdn-315b662581f771ff521b2f826dede8470c082ed6.zip |
Don't show .. in the root directory
Diffstat (limited to 'sdn.cpp')
-rw-r--r-- | sdn.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |