mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
[Backport release-0.9] fix(tui): position cursor at bottom-left before stopping
This commit is contained in:
@@ -690,9 +690,6 @@ void getout(int exitval)
|
|||||||
|
|
||||||
set_vim_var_nr(VV_EXITING, exitval);
|
set_vim_var_nr(VV_EXITING, exitval);
|
||||||
|
|
||||||
// Position the cursor on the last screen line, below all the text
|
|
||||||
ui_cursor_goto(Rows - 1, 0);
|
|
||||||
|
|
||||||
// Optionally print hashtable efficiency.
|
// Optionally print hashtable efficiency.
|
||||||
hash_debug_results();
|
hash_debug_results();
|
||||||
|
|
||||||
@@ -778,9 +775,6 @@ void getout(int exitval)
|
|||||||
wait_return(false);
|
wait_return(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Position the cursor again, the autocommands may have moved it
|
|
||||||
ui_cursor_goto(Rows - 1, 0);
|
|
||||||
|
|
||||||
// Apply 'titleold'.
|
// Apply 'titleold'.
|
||||||
if (p_title && *p_titleold != NUL) {
|
if (p_title && *p_titleold != NUL) {
|
||||||
ui_call_set_title(cstr_as_string(p_titleold));
|
ui_call_set_title(cstr_as_string(p_titleold));
|
||||||
|
@@ -437,6 +437,8 @@ static void tui_terminal_stop(TUIData *tui)
|
|||||||
}
|
}
|
||||||
tinput_stop(&tui->input);
|
tinput_stop(&tui->input);
|
||||||
signal_watcher_stop(&tui->winch_handle);
|
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);
|
terminfo_stop(tui);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user