mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Merge #7358 from justinmk/titleold
This commit is contained in:
commit
01487d4385
@ -6267,11 +6267,11 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
when part of a command has been typed.
|
when part of a command has been typed.
|
||||||
|
|
||||||
*'title'* *'notitle'*
|
*'title'* *'notitle'*
|
||||||
'title' boolean (default off, on when title can be restored)
|
'title' boolean (default off)
|
||||||
global
|
global
|
||||||
When on, the title of the window will be set to the value of
|
When on, the title of the window will be set to the value of
|
||||||
'titlestring' (if it is not empty), or to:
|
'titlestring' (if it is not empty), or to:
|
||||||
filename [+=-] (path) - VIM
|
filename [+=-] (path) - NVIM
|
||||||
Where:
|
Where:
|
||||||
filename the name of the file being edited
|
filename the name of the file being edited
|
||||||
- indicates the file cannot be modified, 'ma' off
|
- indicates the file cannot be modified, 'ma' off
|
||||||
@ -6279,7 +6279,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
= indicates the file is read-only
|
= indicates the file is read-only
|
||||||
=+ indicates the file is read-only and modified
|
=+ indicates the file is read-only and modified
|
||||||
(path) is the path of the file being edited
|
(path) is the path of the file being edited
|
||||||
- VIM the server name |v:servername| or "VIM"
|
- NVIM the server name |v:servername| or "NVIM"
|
||||||
|
|
||||||
*'titlelen'*
|
*'titlelen'*
|
||||||
'titlelen' number (default 85)
|
'titlelen' number (default 85)
|
||||||
@ -6295,11 +6295,10 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
'titlelen' is also used for the 'titlestring' option.
|
'titlelen' is also used for the 'titlestring' option.
|
||||||
|
|
||||||
*'titleold'*
|
*'titleold'*
|
||||||
'titleold' string (default "Thanks for flying Vim")
|
'titleold' string (default "")
|
||||||
global
|
global
|
||||||
This option will be used for the window title when exiting Vim if the
|
If not empty, this option will be used to set the window title when
|
||||||
original title cannot be restored. Only happens if 'title' is on or
|
exiting. Only if 'title' is enabled.
|
||||||
'titlestring' is not empty.
|
|
||||||
This option cannot be set from a |modeline| or in the |sandbox|, for
|
This option cannot be set from a |modeline| or in the |sandbox|, for
|
||||||
security reasons.
|
security reasons.
|
||||||
*'titlestring'*
|
*'titlestring'*
|
||||||
|
@ -3069,9 +3069,13 @@ static bool ti_change(char_u *str, char_u **last)
|
|||||||
/// Set current window title
|
/// Set current window title
|
||||||
void resettitle(void)
|
void resettitle(void)
|
||||||
{
|
{
|
||||||
ui_call_set_title(cstr_as_string((char *)lasttitle));
|
if (p_icon) {
|
||||||
ui_call_set_icon(cstr_as_string((char *)lasticon));
|
ui_call_set_icon(cstr_as_string((char *)lasticon));
|
||||||
ui_flush();
|
}
|
||||||
|
if (p_title || p_icon) {
|
||||||
|
ui_call_set_title(cstr_as_string((char *)lasttitle));
|
||||||
|
ui_flush();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# if defined(EXITFREE)
|
# if defined(EXITFREE)
|
||||||
|
@ -649,6 +649,11 @@ void getout(int exitval)
|
|||||||
/* Position the cursor again, the autocommands may have moved it */
|
/* Position the cursor again, the autocommands may have moved it */
|
||||||
ui_cursor_goto((int)Rows - 1, 0);
|
ui_cursor_goto((int)Rows - 1, 0);
|
||||||
|
|
||||||
|
// Apply 'titleold'.
|
||||||
|
if (p_title && *p_titleold != NUL) {
|
||||||
|
ui_call_set_title(cstr_as_string((char *)p_titleold));
|
||||||
|
}
|
||||||
|
|
||||||
#if defined(USE_ICONV) && defined(DYNAMIC_ICONV)
|
#if defined(USE_ICONV) && defined(DYNAMIC_ICONV)
|
||||||
iconv_end();
|
iconv_end();
|
||||||
#endif
|
#endif
|
||||||
|
@ -2498,7 +2498,7 @@ return {
|
|||||||
no_mkrc=true,
|
no_mkrc=true,
|
||||||
vi_def=true,
|
vi_def=true,
|
||||||
varname='p_titleold',
|
varname='p_titleold',
|
||||||
defaults={if_true={vi=N_("Thanks for flying Vim")}}
|
defaults={if_true={vi=N_("")}}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
full_name='titlestring',
|
full_name='titlestring',
|
||||||
|
Loading…
Reference in New Issue
Block a user