'titleold': set UI title on exit #7191

closes #7129
ref #4063
This commit is contained in:
nate
2017-08-19 18:33:14 -07:00
committed by Justin M. Keyes
parent b7fe15d8f9
commit 5f4d2edeee
4 changed files with 19 additions and 3 deletions

View File

@@ -3069,9 +3069,16 @@ static bool ti_change(char_u *str, char_u **last)
/// Set current window title
void resettitle(void)
{
ui_call_set_title(cstr_as_string((char *)lasttitle));
ui_call_set_icon(cstr_as_string((char *)lasticon));
ui_flush();
// if icon change, should the title be reset too?
if (p_icon) {
ui_call_set_title(cstr_as_string((char *)lasttitle));
ui_call_set_icon(cstr_as_string((char *)lasticon));
} else if (p_title) {
ui_call_set_title(cstr_as_string((char *)lasttitle));
}
if (p_title || p_icon) {
ui_flush();
}
}
# if defined(EXITFREE)