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

@@ -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