summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-03-01 17:35:03 +0100
committerMatthias Beyer <mail@beyermatthias.de>2020-03-01 19:20:27 +0100
commita5d4fa05accc999869d598233ad7420cdda9cf86 (patch)
treeb39059a00d9df8229247538d8ff9d60ae16ba3a4
parent47700a2fcae409aeeb085a6b2a8df16619c86eb5 (diff)
Fix: Also print if output is a data pipe
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r--bin/domain/imag-todo/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/domain/imag-todo/src/lib.rs b/bin/domain/imag-todo/src/lib.rs
index 12712f09..f8611200 100644
--- a/bin/domain/imag-todo/src/lib.rs
+++ b/bin/domain/imag-todo/src/lib.rs
@@ -317,7 +317,7 @@ fn list_todos(rt: &Runtime, matcher: &StatusMatcher, show_hidden: bool) -> Resul
})
.and_then_ok(|entry| {
trace!("Processing {}", entry.get_location());
- if !rt.output_is_pipe() && (show_hidden || filter_hidden.filter(&entry)?) {
+ if (!rt.output_is_pipe() || rt.output_data_pipe()) && (show_hidden || filter_hidden.filter(&entry)?) {
trace!("Printing {}", entry.get_location());
if let Err(e) = viewer.view_entry(&entry, &mut rt.stdout()) {
use libimagentryview::error::Error;