From 4f4cbd4a9e0e3684b0402ad99950543e7797e8fa Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Thu, 27 Nov 2025 17:19:15 +0100 Subject: [PATCH] Fix SIGWINCH handled during print() triggering "RuntimeError: reentrant call inside <_io.BufferedWriter name=''>". --- src/ircplom/tui_base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ircplom/tui_base.py b/src/ircplom/tui_base.py index 7c55ebf..2181a8b 100644 --- a/src/ircplom/tui_base.py +++ b/src/ircplom/tui_base.py @@ -680,7 +680,8 @@ class BaseTui(QueueMixin): windows=self._windows) self._new_window() self._set_screen() - signal(SIGWINCH, lambda *_: self._set_screen()) + signal(SIGWINCH, + lambda *_: self._put(TuiEvent.affector('_set_screen'))) def _log_target_wins(self, **_) -> Sequence[Window]: # separated to serve as hook for subclass window selection -- 2.30.2