diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2020-03-17 18:07:04 -0400 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2020-03-17 18:07:04 -0400 |
commit | e9ba4d33fb582f5a1ee556ba75319254d6bb51b6 (patch) | |
tree | ece7dc2c253d4a116d2f0b2e4518ef110396105e /src/run.rs | |
parent | a0286692964d120ee8a6ea36fbfb2f577dc2305c (diff) |
fix cut
Diffstat (limited to 'src/run.rs')
-rw-r--r-- | src/run.rs | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 => {} } |