Skip to content

Commit

Permalink
dont page if not isatty()
Browse files Browse the repository at this point in the history
  • Loading branch information
pjz committed Oct 7, 2023
1 parent ef584c3 commit 5c7e988
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mhi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ def wrapper(*a, **kw):
sys.stdout = sys.__stdout__

pager = _get_pager_name()
return wrapper if pager else f
return wrapper if sys.stdout.isatty() and pager else f


def msgset_from(arglist):
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "mhi"
version = "0.8.3"
version = "0.8.4"
requires-python = ">=3.8"
description = "MH for IMAP"
readme = "README.md"
Expand Down

0 comments on commit 5c7e988

Please sign in to comment.