summaryrefslogtreecommitdiffstats
path: root/src/commands/new_directory.rs
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2019-06-04 10:49:47 -0400
committerJiayi Zhao <jeff.no.zhao@gmail.com>2019-06-04 13:26:09 -0400
commit7036a7e6ff57b7e5e4b99133ea7466a3b24bf0ce (patch)
treea23141ae6474748f7ae49e04316136f2906fe7bd /src/commands/new_directory.rs
parentda20212f32c8b43400d0aec2af39376651f32b9d (diff)
revert back to previous printing method
- fix index out of bounds error when multiple threads are running
Diffstat (limited to 'src/commands/new_directory.rs')
-rw-r--r--src/commands/new_directory.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/new_directory.rs b/src/commands/new_directory.rs
index 859aff9..299d2a3 100644
--- a/src/commands/new_directory.rs
+++ b/src/commands/new_directory.rs
@@ -39,7 +39,7 @@ impl JoshutoRunnable for NewDirectory {
Err(e) => return Err(JoshutoError::IO(e)),
}
}
- let res = ReloadDirList::reload(context.curr_tab_index, context, view);
+ let res = ReloadDirList::reload(context.curr_tab_index, context);
match res {
Ok(_) => {
let curr_tab = &mut context.tabs[context.curr_tab_index];