diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2019-11-13 19:21:28 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2019-11-13 19:21:28 +0100 |
commit | 5a89a29b6d3cc9d020006c264e321bcb47553711 (patch) | |
tree | 51685f590253c60dcbce43f75e8f33f40856fe27 | |
parent | fae53aa134c06a208a5bf24913674cf600829cc3 (diff) |
Fix: Only view entry if output is not a pipe
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r-- | bin/domain/imag-todo/src/lib.rs | 2 |
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 2b6d4d15..1ee53439 100644 --- a/bin/domain/imag-todo/src/lib.rs +++ b/bin/domain/imag-todo/src/lib.rs @@ -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())?; } |