comparison src/main.c @ 26336:a2e6da79274d v8.2.3699

patch 8.2.3699: the +title feature adds a lot of #ifdef but little code Commit: https://github.com/vim/vim/commit/651fca85c71a4c5807f8f828f9ded30fbd754325 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Nov 29 20:39:38 2021 +0000 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.
author Bram Moolenaar <Bram@vim.org>
date Mon, 29 Nov 2021 21:45:04 +0100
parents b1d9ee2f2328
children 57f585da8c45
comparison
equal deleted inserted replaced
26335:c12a888d1f63 26336:a2e6da79274d
666 setmouse(); // may start using the mouse 666 setmouse(); // may start using the mouse
667 if (scroll_region) 667 if (scroll_region)
668 scroll_region_reset(); // In case Rows changed 668 scroll_region_reset(); // In case Rows changed
669 scroll_start(); // may scroll the screen to the right position 669 scroll_start(); // may scroll the screen to the right position
670 670
671 #if defined(FEAT_TITLE) && (defined(UNIX) || defined(VMS) || defined(MACOS_X)) 671 #if defined(UNIX) || defined(VMS) || defined(MACOS_X)
672 term_push_title(SAVE_RESTORE_BOTH); 672 term_push_title(SAVE_RESTORE_BOTH);
673 #endif 673 #endif
674 674
675 /* 675 /*
676 * Don't clear the screen when starting in Ex mode, unless using the GUI. 676 * Don't clear the screen when starting in Ex mode, unless using the GUI.
1393 mch_enable_flush(); 1393 mch_enable_flush();
1394 } 1394 }
1395 else if (redraw_cmdline || clear_cmdline) 1395 else if (redraw_cmdline || clear_cmdline)
1396 showmode(); 1396 showmode();
1397 redraw_statuslines(); 1397 redraw_statuslines();
1398 #ifdef FEAT_TITLE
1399 if (need_maketitle) 1398 if (need_maketitle)
1400 maketitle(); 1399 maketitle();
1401 #endif
1402 #ifdef FEAT_VIMINFO 1400 #ifdef FEAT_VIMINFO
1403 curbuf->b_last_used = vim_time(); 1401 curbuf->b_last_used = vim_time();
1404 #endif 1402 #endif
1405 // display message after redraw 1403 // display message after redraw
1406 if (keep_msg != NULL) 1404 if (keep_msg != NULL)