aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/main.c
diff options
context:
space:
mode:
authorKunMing Xie <qqzz014@gmail.com>2017-10-08 09:33:20 +0800
committerGitHub <noreply@github.com>2017-10-08 09:33:20 +0800
commit4b2592d7b6c295093b07ac2737658767c3e3377b (patch)
tree7b238e71c98398bb9433f0a48858c3ab3909be39 /src/nvim/main.c
parentf97ca6b3339ca04477296c834a159d40d2201ccd (diff)
parent032b088c848585e60e8dc1a210f240bad6bb3387 (diff)
downloadrneovim-4b2592d7b6c295093b07ac2737658767c3e3377b.tar.gz
rneovim-4b2592d7b6c295093b07ac2737658767c3e3377b.tar.bz2
rneovim-4b2592d7b6c295093b07ac2737658767c3e3377b.zip
Merge branch 'master' into vim-8.0.0131
Diffstat (limited to 'src/nvim/main.c')
-rw-r--r--src/nvim/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/main.c b/src/nvim/main.c
index 024c56dd05..ea7a58bda3 100644
--- a/src/nvim/main.c
+++ b/src/nvim/main.c
@@ -649,6 +649,11 @@ void getout(int exitval)
/* Position the cursor again, the autocommands may have moved it */
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)
iconv_end();
#endif