This commit is contained in:
Kovid Goyal 2025-03-21 22:20:02 +05:30
parent f57f3d9909
commit 272045287a
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
2 changed files with 5 additions and 1 deletions

View file

@ -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]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View file

@ -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: