aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/main.c
diff options
context:
space:
mode:
authorckelsel <ckelsel@hotmail.com>2017-10-09 21:17:15 +0800
committerckelsel <ckelsel@hotmail.com>2017-10-10 14:50:13 +0800
commitd2b0c5838a999483a59953755e8c52507b0420b8 (patch)
tree97d44e212a3287b9967f0006cd4d587a77de72cd /src/nvim/main.c
parent5d369ad3843bbc0a3541827284f55430ec4f46e4 (diff)
parentceb40c0411843b35005f019bf2c61f22572afcdf (diff)
downloadrneovim-d2b0c5838a999483a59953755e8c52507b0420b8.tar.gz
rneovim-d2b0c5838a999483a59953755e8c52507b0420b8.tar.bz2
rneovim-d2b0c5838a999483a59953755e8c52507b0420b8.zip
Merge branch 'master' of github.com:ckelsel/neovim into vim-8.0.0101
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