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 @@ def parse_osc_52(self, data: memoryview, is_partial: bool = False) -> None: 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: