summaryrefslogtreecommitdiffstats
path: root/src/preview.rs
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2019-04-28 08:39:00 -0400
committerJiayi Zhao <jeff.no.zhao@gmail.com>2019-04-28 08:39:30 -0400
commit1f94f80f2abc768209e57c09ba4f8d2c3180a897 (patch)
tree7556a4e86a0a194dc3257ae84f76eb3bd92ec369 /src/preview.rs
parentb3e9d955b0a60b55a9edeed93e00ce2772f5b467 (diff)
fixed progress bar not showing for file operations
Diffstat (limited to 'src/preview.rs')
-rw-r--r--src/preview.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/preview.rs b/src/preview.rs
index 377a5fa..1288d2f 100644
--- a/src/preview.rs
+++ b/src/preview.rs
@@ -92,7 +92,8 @@ fn preview_file(path: &path::Path, win: &JoshutoPanel) {
fn preview_with(path: &path::Path, win: &JoshutoPanel, entry: &JoshutoPreviewEntry) {
let mut command = process::Command::new(&entry.program);
- command.args(entry.args.as_ref().unwrap_or(&Vec::new()))
+ command
+ .args(entry.args.as_ref().unwrap_or(&Vec::new()))
.arg(path.as_os_str())
.stdin(std::process::Stdio::piped())
.stdout(std::process::Stdio::piped())