mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-17 05:54:59 +02:00
Fix requesting data from clipboard via OSC 52 getting it from primary selection instead
Fixes #7213
This commit is contained in:
@@ -47,6 +47,11 @@ rsync algorithm to speed up repeated transfers of large files.
|
|||||||
Detailed list of changes
|
Detailed list of changes
|
||||||
-------------------------------------
|
-------------------------------------
|
||||||
|
|
||||||
|
0.33.1 [future]
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
- Fix a regression in the previous release that caused requesting data from the clipboard via OSC 52 to instead return data from the primary selection (:iss:`7213`)
|
||||||
|
|
||||||
0.33.0 [2024-03-12]
|
0.33.0 [2024-03-12]
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
|||||||
@@ -406,7 +406,7 @@ class ClipboardRequestManager:
|
|||||||
def parse_osc_52(self, data: memoryview, is_partial: bool = False) -> None:
|
def parse_osc_52(self, data: memoryview, is_partial: bool = False) -> None:
|
||||||
idx = find_in_memoryview(data, ord(b';'))
|
idx = find_in_memoryview(data, ord(b';'))
|
||||||
if idx > -1:
|
if idx > -1:
|
||||||
where = str(data[idx:], "utf-8", 'replace')
|
where = str(data[:idx], "utf-8", 'replace')
|
||||||
data = data[idx+1:]
|
data = data[idx+1:]
|
||||||
else:
|
else:
|
||||||
where = str(data, "utf-8", 'replace')
|
where = str(data, "utf-8", 'replace')
|
||||||
|
|||||||
Reference in New Issue
Block a user