mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-24 18:07:01 +00:00
Ensure leftover bytes are a copy
This commit is contained in:
parent
a33b747de5
commit
89debca4af
1 changed files with 1 additions and 1 deletions
|
|
@ -283,7 +283,7 @@ class WriteRequest:
|
|||
extra = len(data) % 4
|
||||
if extra > 0:
|
||||
mv = memoryview(data)
|
||||
self.current_leftover_bytes = mv[-extra:]
|
||||
self.current_leftover_bytes = memoryview(bytes(mv[-extra:]))
|
||||
mv = mv[:-extra]
|
||||
if len(mv) > 0:
|
||||
self.write_base64_data(mv)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue