diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2020-03-16 16:14:17 -0400 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2020-03-16 16:14:17 -0400 |
commit | c6edd4e5d5cbcbc16063a10181aee9626822d273 (patch) | |
tree | 5524d52e5fb6f288be943c4882973dd1839a95f3 /src/commands/bulk_rename.rs | |
parent | 50f67156b783c3f533214ddfa8e79bd979d76278 (diff) |
better error handling for threads
- code cleanup
Diffstat (limited to 'src/commands/bulk_rename.rs')
-rw-r--r-- | src/commands/bulk_rename.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/commands/bulk_rename.rs b/src/commands/bulk_rename.rs index b9f5cfc..e22be06 100644 --- a/src/commands/bulk_rename.rs +++ b/src/commands/bulk_rename.rs @@ -138,9 +138,9 @@ impl std::fmt::Display for BulkRename { impl JoshutoRunnable for BulkRename { fn execute(&self, context: &mut JoshutoContext, backend: &mut TuiBackend) -> JoshutoResult<()> { backend.terminal_drop(); - Self::bulk_rename(context)?; - backend.terminal_restore(); + let res = Self::bulk_rename(context); + backend.terminal_restore()?; ReloadDirList::reload(context.curr_tab_index, context)?; - Ok(()) + res } } |