summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dirlist.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dirlist.c b/src/dirlist.c
index 8765503..b26ba84 100644
--- a/src/dirlist.c
+++ b/src/dirlist.c
@@ -191,7 +191,8 @@ void dirlist_open(struct dir *d) {
/* not necessary for any ncdu functionality,
* but enables screen/tmux to work out our cwd */
- chdir(getpath(dirlist_par));
+ if(!dir_import_active)
+ path_chdir(getpath(dirlist_par));
/* set the head of the list */
head_real = head = d == NULL ? NULL : d->sub;