mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-21 16:05:02 +02:00
Fix pasting large amounts of text very slow.
Fixes #682 Apparently when refactoring child.py I somehow lost the code to make the child fd non-blocking.
This commit is contained in:
@@ -83,6 +83,7 @@ class Child:
|
|||||||
if stdin is not None:
|
if stdin is not None:
|
||||||
os.close(stdin_read_fd)
|
os.close(stdin_read_fd)
|
||||||
fast_data_types.thread_write(stdin_write_fd, stdin)
|
fast_data_types.thread_write(stdin_write_fd, stdin)
|
||||||
|
fcntl.fcntl(self.child_fd, fcntl.F_SETFL, fcntl.fcntl(self.child_fd, fcntl.F_GETFL) | os.O_NONBLOCK)
|
||||||
return pid
|
return pid
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|||||||
Reference in New Issue
Block a user