mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-03 22:25:57 +00:00
Fix a bug when copying large amounts of text with OSC 52 introduced by the new multi-format clipboard support
This commit is contained in:
parent
836b652f4d
commit
bf8d0c9732
1 changed files with 3 additions and 1 deletions
|
|
@ -279,8 +279,10 @@ class WriteRequest:
|
|||
extra = 4 - len(self.current_leftover_bytes)
|
||||
if len(data) >= extra:
|
||||
self.write_base64_data(memoryview(bytes(self.current_leftover_bytes) + data[:extra]))
|
||||
data = memoryview(data)[extra:]
|
||||
self.current_leftover_bytes = memoryview(b'')
|
||||
data = memoryview(data)[extra:]
|
||||
if len(data) > 0:
|
||||
self.write_base64_data(data)
|
||||
else:
|
||||
self.current_leftover_bytes = memoryview(bytes(self.current_leftover_bytes) + data)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue