From 4f235e3cafba5dc305aa0be33cdec093e9c5a92d Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Fri, 28 Apr 2023 20:26:02 +0800 Subject: fix(tui): position cursor at bottom-left before stopping (#23369) Fix #23361 --- src/nvim/tui/tui.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/nvim/tui') diff --git a/src/nvim/tui/tui.c b/src/nvim/tui/tui.c index 2f4ff13bde..975ad375a0 100644 --- a/src/nvim/tui/tui.c +++ b/src/nvim/tui/tui.c @@ -437,6 +437,8 @@ static void tui_terminal_stop(TUIData *tui) } tinput_stop(&tui->input); signal_watcher_stop(&tui->winch_handle); + // Position the cursor on the last screen line, below all the text + cursor_goto(tui, tui->height - 1, 0); terminfo_stop(tui); } -- cgit