Skip to content

Commit e5e9d59

Browse files
committed
Disallow stdin until input_requests are handled
Currently stdin_channel is ignored which means the kernel freezes waiting for a stdin reply if input() is called. Pass allow_stdin=False to give an immediate exception instead of hanging.
1 parent 953abc2 commit e5e9d59

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ftplugin/python/vim_ipython.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ def km_from_string(s=''):
229229
def send(msg, **kwargs):
230230
kwds = dict(
231231
store_history=vim_vars.get('ipython_store_history', True),
232+
allow_stdin=False,
232233
)
233234
kwds.update(kwargs)
234235
return execute(msg, **kwds)

0 commit comments

Comments
 (0)