diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-06-04 10:49:47 -0400 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-06-04 13:26:09 -0400 |
commit | 7036a7e6ff57b7e5e4b99133ea7466a3b24bf0ce (patch) | |
tree | a23141ae6474748f7ae49e04316136f2906fe7bd /src/commands/new_directory.rs | |
parent | da20212f32c8b43400d0aec2af39376651f32b9d (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.rs | 2 |
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]; |