summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-11-29 20:39:38 +0000
committerBram Moolenaar <Bram@vim.org>2021-11-29 20:39:38 +0000
commit651fca85c71a4c5807f8f828f9ded30fbd754325 (patch)
tree8e8524432d917e2657b7717aeb40823b21b1c38c /src/main.c
parent0c359af5c0fd106d3f57cc0bb7cef1c89b5e1e10 (diff)
patch 8.2.3699: the +title feature adds a lot of #ifdef but little codev8.2.3699
Problem: The +title feature adds a lot of #ifdef but little code. Solution: Graduate the +title feature.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 50047d5554..268209e8da 100644
--- a/src/main.c
+++ b/src/main.c
@@ -668,7 +668,7 @@ vim_main2(void)
scroll_region_reset(); // In case Rows changed
scroll_start(); // may scroll the screen to the right position
-#if defined(FEAT_TITLE) && (defined(UNIX) || defined(VMS) || defined(MACOS_X))
+#if defined(UNIX) || defined(VMS) || defined(MACOS_X)
term_push_title(SAVE_RESTORE_BOTH);
#endif
@@ -1395,10 +1395,8 @@ main_loop(
else if (redraw_cmdline || clear_cmdline)
showmode();
redraw_statuslines();
-#ifdef FEAT_TITLE
if (need_maketitle)
maketitle();
-#endif
#ifdef FEAT_VIMINFO
curbuf->b_last_used = vim_time();
#endif