From: Christian Heller Date: Thu, 27 Nov 2025 16:19:15 +0000 (+0100) Subject: Fix SIGWINCH handled during print() triggering "RuntimeError: reentrant call inside... X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/add_structured?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;p=ircplom Fix SIGWINCH handled during print() triggering "RuntimeError: reentrant call inside <_io.BufferedWriter name=''>". --- 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