mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-26 10:51:55 +00:00
...
This commit is contained in:
parent
6c0e938d5a
commit
dcde461c02
1 changed files with 3 additions and 3 deletions
|
|
@ -233,14 +233,14 @@ class DumpCommands: # {{{
|
|||
|
||||
def __call__(self, window_id: int, what: str, *a: Any) -> None:
|
||||
if what == 'draw':
|
||||
if a[1] is None:
|
||||
if a[0] is None:
|
||||
if self.draw_dump_buf:
|
||||
safe_print('draw', ''.join(self.draw_dump_buf))
|
||||
self.draw_dump_buf = []
|
||||
else:
|
||||
self.draw_dump_buf.append(a[1])
|
||||
self.draw_dump_buf.append(a[0])
|
||||
elif what == 'bytes':
|
||||
self.dump_bytes_to.write(a[1])
|
||||
self.dump_bytes_to.write(a[0])
|
||||
self.dump_bytes_to.flush()
|
||||
else:
|
||||
if self.draw_dump_buf:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue