mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
'titleold': move logic to getout()
This commit is contained in:
parent
70e84a7c4c
commit
73b50de925
@ -649,6 +649,11 @@ void getout(int exitval)
|
|||||||
/* Position the cursor again, the autocommands may have moved it */
|
/* Position the cursor again, the autocommands may have moved it */
|
||||||
ui_cursor_goto((int)Rows - 1, 0);
|
ui_cursor_goto((int)Rows - 1, 0);
|
||||||
|
|
||||||
|
// Apply 'titleold'.
|
||||||
|
if (p_title && *p_titleold != NUL) {
|
||||||
|
ui_call_set_title(cstr_as_string((char *)p_titleold));
|
||||||
|
}
|
||||||
|
|
||||||
#if defined(USE_ICONV) && defined(DYNAMIC_ICONV)
|
#if defined(USE_ICONV) && defined(DYNAMIC_ICONV)
|
||||||
iconv_end();
|
iconv_end();
|
||||||
#endif
|
#endif
|
||||||
|
@ -15,7 +15,6 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "nvim/api/private/handle.h"
|
#include "nvim/api/private/handle.h"
|
||||||
#include "nvim/api/private/helpers.h"
|
|
||||||
#include "nvim/vim.h"
|
#include "nvim/vim.h"
|
||||||
#include "nvim/ascii.h"
|
#include "nvim/ascii.h"
|
||||||
#include "nvim/os_unix.h"
|
#include "nvim/os_unix.h"
|
||||||
@ -138,9 +137,6 @@ void mch_exit(int r) FUNC_ATTR_NORETURN
|
|||||||
{
|
{
|
||||||
exiting = true;
|
exiting = true;
|
||||||
|
|
||||||
if (p_title && *p_titleold != NUL) {
|
|
||||||
ui_call_set_title(cstr_as_string((char *)p_titleold));
|
|
||||||
}
|
|
||||||
ui_builtin_stop();
|
ui_builtin_stop();
|
||||||
ui_flush();
|
ui_flush();
|
||||||
ml_close_all(true); // remove all memfiles
|
ml_close_all(true); // remove all memfiles
|
||||||
|
Loading…
Reference in New Issue
Block a user