mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-16 05:24:20 +02:00
...
This commit is contained in:
@@ -233,14 +233,14 @@ class DumpCommands: # {{{
|
|||||||
|
|
||||||
def __call__(self, window_id: int, what: str, *a: Any) -> None:
|
def __call__(self, window_id: int, what: str, *a: Any) -> None:
|
||||||
if what == 'draw':
|
if what == 'draw':
|
||||||
if a[1] is None:
|
if a[0] is None:
|
||||||
if self.draw_dump_buf:
|
if self.draw_dump_buf:
|
||||||
safe_print('draw', ''.join(self.draw_dump_buf))
|
safe_print('draw', ''.join(self.draw_dump_buf))
|
||||||
self.draw_dump_buf = []
|
self.draw_dump_buf = []
|
||||||
else:
|
else:
|
||||||
self.draw_dump_buf.append(a[1])
|
self.draw_dump_buf.append(a[0])
|
||||||
elif what == 'bytes':
|
elif what == 'bytes':
|
||||||
self.dump_bytes_to.write(a[1])
|
self.dump_bytes_to.write(a[0])
|
||||||
self.dump_bytes_to.flush()
|
self.dump_bytes_to.flush()
|
||||||
else:
|
else:
|
||||||
if self.draw_dump_buf:
|
if self.draw_dump_buf:
|
||||||
|
|||||||
Reference in New Issue
Block a user