summaryrefslogtreecommitdiffstats
path: root/src/run.rs
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2020-03-17 18:07:04 -0400
committerJiayi Zhao <jeff.no.zhao@gmail.com>2020-03-17 18:07:04 -0400
commite9ba4d33fb582f5a1ee556ba75319254d6bb51b6 (patch)
treeece7dc2c253d4a116d2f0b2e4518ef110396105e /src/run.rs
parenta0286692964d120ee8a6ea36fbfb2f577dc2305c (diff)
fix cut
Diffstat (limited to 'src/run.rs')
-rw-r--r--src/run.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/run.rs b/src/run.rs
index b18567f..35a6656 100644
--- a/src/run.rs
+++ b/src/run.rs
@@ -58,7 +58,8 @@ pub fn run(config_t: JoshutoConfig, keymap_t: JoshutoCommandMapping) -> std::io:
handle.join();
let msg = match res {
Ok(s) => {
- format!("io_worker completed successfully: {} bytes processed", s)
+ format!("io_worker completed successfully: {:.3} KB processed",
+ s as f64 / 1024.0)
}
Err(e) => format!("io_worker was not completed: {}", e.to_string()),
};
@@ -68,6 +69,7 @@ pub fn run(config_t: JoshutoConfig, keymap_t: JoshutoCommandMapping) -> std::io:
tab.history.create_or_update(src.as_path(), options);
tab.history.create_or_update(dest.as_path(), options);
}
+ CursorMoveStub::new().execute(&mut context, &mut backend);
}
None => {}
}