From a5d4fa05accc999869d598233ad7420cdda9cf86 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 1 Mar 2020 17:35:03 +0100 Subject: Fix: Also print if output is a data pipe Signed-off-by: Matthias Beyer --- bin/domain/imag-todo/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3