diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2020-09-29 02:31:49 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2020-09-29 02:31:49 +0200 |
commit | 1507f2dff9d5a70c8c20bbda88c29e81ff70c211 (patch) | |
tree | e84f2d98fcb56ab503ec6b548b813c9f78a6488a | |
parent | 9a12fd80213c985fc91ee75854918523106377f3 (diff) | |
download | sdn-1507f2dff9d5a70c8c20bbda88c29e81ff70c211.tar.gz sdn-1507f2dff9d5a70c8c20bbda88c29e81ff70c211.tar.xz sdn-1507f2dff9d5a70c8c20bbda88c29e81ff70c211.zip |
Cleanup
-rw-r--r-- | sdn.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1100,10 +1100,9 @@ fun change_dir (const string &path) { return; } - auto old_cwd = g.cwd; - level last {g.offset, g.cursor, old_cwd, g.entries[g.cursor].filename}; + level last {g.offset, g.cursor, g.cwd, g.entries[g.cursor].filename}; g.cwd = full_path; - bool same_path = old_cwd == g.cwd; + bool same_path = last.path == g.cwd; reload (same_path); if (is_ancestor_dir (last.path, g.cwd)) { |