diff options
-rw-r--r-- | src/dirlist.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dirlist.c b/src/dirlist.c index 50b90f0..8765503 100644 --- a/src/dirlist.c +++ b/src/dirlist.c @@ -189,6 +189,10 @@ static void dirlist_fixup() { void dirlist_open(struct dir *d) { dirlist_par = d; + /* not necessary for any ncdu functionality, + * but enables screen/tmux to work out our cwd */ + chdir(getpath(dirlist_par)); + /* set the head of the list */ head_real = head = d == NULL ? NULL : d->sub; |