neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 51b39f816ca4a44660e7ab7906520ae908492734
parent 314d3ce1eb1da284baf9b33f30500473afe73144
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Wed, 25 Jan 2023 07:34:28 +0800

fix(tui): set stdin as "blocking" on exit (#21973)

This fixes a regression from #21605 that stdin is no longer set as
"blocking" after Nvim TUI exits, and the problems described in #2598
happen again.

I'm not sure if this should be done in TUI code or common exiting code.
I added this call in tui_stop() as it is also present in tui_suspend().
Diffstat:
Msrc/nvim/tui/tui.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/nvim/tui/tui.c b/src/nvim/tui/tui.c @@ -459,6 +459,7 @@ static void tui_terminal_stop(TUIData *tui) void tui_stop(TUIData *tui) { tui_terminal_stop(tui); + stream_set_blocking(tui->input.in_fd, true); // normalize stream (#2598) tinput_destroy(&tui->input); tui->stopped = true; signal_watcher_close(&tui->winch_handle, NULL);