forked from aniani/vim
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.
This commit is contained in:
@@ -2123,9 +2123,7 @@ set_termname(char_u *term)
|
||||
{
|
||||
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 @@ term_ul_rgb_color(guicolor_T rgb)
|
||||
}
|
||||
#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 @@ set_shellsize(int width, int height, int mustset)
|
||||
|
||||
if (starting != NO_SCREEN)
|
||||
{
|
||||
#ifdef FEAT_TITLE
|
||||
maketitle();
|
||||
#endif
|
||||
|
||||
changed_line_abv_curs();
|
||||
invalidate_botline();
|
||||
|
||||
|
Reference in New Issue
Block a user