mirror of
https://github.com/neovim/neovim.git
synced 2025-10-09 11:26:37 +00:00
win: stream: reset tty stream on close
This was overlooked in8072f085d2
. Analogous to8a782f1699
. fix #10668 ref8072f085d2
#9884 ref8a782f1699
#2377
This commit is contained in:
@@ -97,6 +97,13 @@ void stream_close(Stream *stream, stream_close_cb on_stream_close, void *data)
|
||||
stream->close_cb = on_stream_close;
|
||||
stream->close_cb_data = data;
|
||||
|
||||
#ifdef WIN32
|
||||
if (UV_TTY == uv_guess_handle(stream->fd)) {
|
||||
// Undo UV_TTY_MODE_RAW from stream_init(). #10801
|
||||
uv_tty_set_mode(&stream->uv.tty, UV_TTY_MODE_NORMAL);
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!stream->pending_reqs) {
|
||||
stream_close_handle(stream);
|
||||
}
|
||||
|
Reference in New Issue
Block a user