Fix: Only view entry if output is not a pipe
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
parent
fae53aa134
commit
5a89a29b6d
1 changed files with 1 additions and 1 deletions
|
@ -323,7 +323,7 @@ fn list_todos(rt: &Runtime, matcher: &StatusMatcher, show_hidden: bool) -> Resul
|
|||
}
|
||||
})
|
||||
.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())?;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue