clipboard kitten: fix copies to clipboard not working without the --wait-for-completion option

This commit is contained in:
Kovid Goyal
2021-07-24 07:55:50 +05:30
parent 31da01d4df
commit ff191c9404
4 changed files with 13 additions and 1 deletions

View File

@@ -343,6 +343,7 @@ class Loop:
self.write_buf: List[bytes] = []
self.asycio_loop.remove_writer(fd)
self.waiting_for_writes = False
handler.on_writing_finished()
else:
consumed = 0
for i, buf in enumerate(self.write_buf):