summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-08-07 22:31:44 +0200
committerBram Moolenaar <Bram@vim.org>2018-08-07 22:31:44 +0200
commit40385dbcdfb44885f2e9b83e1e0285aeb8a0c2a8 (patch)
tree35de952db98f597df68144ef4ab99a294177861d /src/main.c
parentde3b3677f7eace66be454196db0fbf710cfc8c5e (diff)
patch 8.1.0253: saving and restoring window title does not always workv8.1.0253
Problem: Saving and restoring window title does not always work. Solution: Use the stack push and pop commands. (Kouichi Iwamoto, closes #3059)
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index f67706699c..b8390508d3 100644
--- a/src/main.c
+++ b/src/main.c
@@ -706,6 +706,10 @@ vim_main2(void)
scroll_region_reset(); /* In case Rows changed */
scroll_start(); /* may scroll the screen to the right position */
+#ifdef FEAT_TITLE
+ term_push_title(SAVE_RESTORE_BOTH);
+#endif
+
/*
* Don't clear the screen when starting in Ex mode, unless using the GUI.
*/