Mercurial > vim
diff src/os_amiga.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 | 76c9f536bafb |
children | fc859aea8cec |
line wrap: on
line diff
--- a/src/os_amiga.c +++ b/src/os_amiga.c @@ -623,7 +623,6 @@ get_fib(char_u *fname) return fib; } -#ifdef FEAT_TITLE /* * set the title of our window * icon name is not set @@ -660,7 +659,6 @@ mch_can_restore_icon(void) { return FALSE; } -#endif void mch_setmouse(int on UNUSED) @@ -940,9 +938,7 @@ mch_exit(int r) out_flush(); } -#ifdef FEAT_TITLE mch_restore_title(SAVE_RESTORE_BOTH); // restore window title -#endif ml_close_all(TRUE); // remove all memfiles @@ -1442,9 +1438,7 @@ mch_call_shell( cur_tmode = TMODE_UNKNOWN; settmode(TMODE_RAW); // set to raw mode } -#ifdef FEAT_TITLE resettitle(); -#endif if (term_console) win_resize_on(); // window resize events activated return retval;