Fix: Only view entry if output is not a pipe

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
Matthias Beyer 2019-11-13 19:21:28 +01:00
parent fae53aa134
commit 5a89a29b6d

View file

@ -323,7 +323,7 @@ fn list_todos(rt: &Runtime, matcher: &StatusMatcher, show_hidden: bool) -> Resul
} }
}) })
.and_then_ok(|entry| { .and_then_ok(|entry| {
if show_hidden || filter_hidden.filter(&entry)? { if !rt.output_is_pipe() && (show_hidden || filter_hidden.filter(&entry)?) {
viewer.view_entry(&entry, &mut rt.stdout())?; viewer.view_entry(&entry, &mut rt.stdout())?;
} }