summaryrefslogtreecommitdiffstats
path: root/bin/domain/imag-todo/src/lib.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2019-11-13 19:21:28 +0100
committerMatthias Beyer <mail@beyermatthias.de>2019-11-13 19:21:28 +0100
commit5a89a29b6d3cc9d020006c264e321bcb47553711 (patch)
tree51685f590253c60dcbce43f75e8f33f40856fe27 /bin/domain/imag-todo/src/lib.rs
parentfae53aa134c06a208a5bf24913674cf600829cc3 (diff)
downloadimag-5a89a29b6d3cc9d020006c264e321bcb47553711.tar.gz
imag-5a89a29b6d3cc9d020006c264e321bcb47553711.tar.xz
Diffstat (limited to 'bin/domain/imag-todo/src/lib.rs')
-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 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())?;
}