From 272045287a74e82c9e6e653b7450095f78a9394b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 21 Mar 2025 22:20:02 +0530 Subject: [PATCH] Fix #8459 --- docs/changelog.rst | 4 ++++ kitty/clipboard.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index b20c1a39f..c08a8d46a 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -114,6 +114,10 @@ Detailed list of changes character at the right edge of a line that needs to be moved onto the next line (:iss:`8464`) +- Fix a regression in 0.40.1 that caused copying to clipboard via OSC 52 from + applications that dont specify a destination in the escape code not working + (:iss:`8459`) + 0.40.1 [2025-03-18] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/kitty/clipboard.py b/kitty/clipboard.py index 651520b82..d0b54b341 100644 --- a/kitty/clipboard.py +++ b/kitty/clipboard.py @@ -399,7 +399,7 @@ class ClipboardRequestManager: else: where = str(data, "utf-8", 'replace') data = data[len(data):] - destinations = {ClipboardType.from_osc52_where_field(where) for where in where} + destinations = {ClipboardType.from_osc52_where_field(where) for where in where or 's0'} destinations.discard(ClipboardType.unknown) if len(data) == 1 and data.tobytes() == b'?': for d in destinations: