Fix infinite loop in send-text when stdin is a tty

This commit is contained in:
Kovid Goyal
2020-12-01 12:29:03 +05:30
parent ed2dae5884
commit 4a049b14ca

View File

@@ -65,6 +65,7 @@ Do not send text to the active window, even if it is one of the matched windows.
def pipe() -> Generator[Dict, None, None]:
if sys.stdin.isatty():
ret['exclude_active'] = True
import select
fd = sys.stdin.fileno()
keep_going = True