0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

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:
Bram Moolenaar
2021-11-29 20:39:38 +00:00
parent 0c359af5c0
commit 651fca85c7
34 changed files with 56 additions and 244 deletions

View File

@@ -6205,14 +6205,10 @@ ex_stop(exarg_T *eap)
out_flush();
stoptermcap();
out_flush(); // needed for SUN to restore xterm buffer
#ifdef FEAT_TITLE
mch_restore_title(SAVE_RESTORE_BOTH); // restore window titles
#endif
ui_suspend(); // call machine specific function
#ifdef FEAT_TITLE
maketitle();
resettitle(); // force updating the title
#endif
starttermcap();
scroll_start(); // scroll screen before redrawing
redraw_later_clear();
@@ -7047,14 +7043,10 @@ do_exedit(
{
if (eap->do_ecmd_cmd != NULL)
do_cmd_argument(eap->do_ecmd_cmd);
#ifdef FEAT_TITLE
n = curwin->w_arg_idx_invalid;
#endif
check_arg_idx(curwin);
#ifdef FEAT_TITLE
if (n != curwin->w_arg_idx_invalid)
maketitle();
#endif
}
/*
@@ -8178,10 +8170,8 @@ ex_redraw(exarg_T *eap)
validate_cursor();
update_topline();
update_screen(eap->forceit ? CLEAR : VIsual_active ? INVERTED : 0);
#ifdef FEAT_TITLE
if (need_maketitle)
maketitle();
#endif
#if defined(MSWIN) && (!defined(FEAT_GUI_MSWIN) || defined(VIMDLL))
# ifdef VIMDLL
if (!gui.in_use)