From 40657a8450bd71c8cfc30c97599439b5d3ff212d Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Fri, 25 Jul 2025 00:25:01 +0200 Subject: [PATCH] Fix occasional paste failures. --- ircplom/tui.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ircplom/tui.py b/ircplom/tui.py index d81e1ec..3c06a89 100644 --- a/ircplom/tui.py +++ b/ircplom/tui.py @@ -619,6 +619,8 @@ class Terminal(QueueMixin): chars += new_chars if chars[:len(_OSC52_PREFIX)] == _OSC52_PREFIX: to_yield = _B64_PREFIX[:] + # mostly adds nothing, but sometimes swallowed first char + to_yield += chars[len(_OSC52_PREFIX):].decode('utf-8') while (gotch := self._blessed.getch()) != _PASTE_DELIMITER: to_yield += gotch else: -- 2.30.2