diff --git a/src/click/_termui_impl.py b/src/click/_termui_impl.py index a3af250c3..77edbd9ab 100644 --- a/src/click/_termui_impl.py +++ b/src/click/_termui_impl.py @@ -424,7 +424,6 @@ def _pipepager(generator: cabc.Iterable[str], cmd: str, color: bool | None) -> N text = strip_ansi(text) stdin.write(text.encode(encoding, "replace")) - stdin.flush() except Exception as e: # In case there is an exception we want to close the pager immediately # and let the caller handle it.