patch 8.2.3699: the +title feature adds a lot of #ifdef but little code
Problem: The +title feature adds a lot of #ifdef but little code.
Solution: Graduate the +title feature.
diff --git a/src/term.c b/src/term.c
index 52533e9..eb4dffa 100644
--- a/src/term.c
+++ b/src/term.c
@@ -2123,9 +2123,7 @@
{
starttermcap(); // may change terminal mode
setmouse(); // may start using the mouse
-#ifdef FEAT_TITLE
maketitle(); // may display window title
-#endif
}
// display initial screen after ttest() checking. jw.
@@ -3091,8 +3089,7 @@
}
#endif
-#if (defined(FEAT_TITLE) && (defined(UNIX) || defined(VMS) \
- || defined(MACOS_X))) || defined(PROTO)
+#if (defined(UNIX) || defined(VMS) || defined(MACOS_X)) || defined(PROTO)
/*
* Generic function to set window title, using t_ts and t_fs.
*/
@@ -3505,9 +3502,8 @@
if (starting != NO_SCREEN)
{
-#ifdef FEAT_TITLE
maketitle();
-#endif
+
changed_line_abv_curs();
invalidate_botline();