aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer.c
diff options
context:
space:
mode:
authorckelsel <ckelsel@hotmail.com>2017-10-07 18:14:09 +0800
committerckelsel <ckelsel@hotmail.com>2017-10-07 18:14:09 +0800
commitf2b9ccec106b6c4619cc762ea77546810f1cbfd4 (patch)
tree93fb82598ecf1d227137cd093c16cc14b537e76c /src/nvim/buffer.c
parentfae55937ac31c0d61c2c89ed0e9be43f3bd2a759 (diff)
parent01487d4385aeffae4b2365689c7d798f740f7100 (diff)
downloadrneovim-f2b9ccec106b6c4619cc762ea77546810f1cbfd4.tar.gz
rneovim-f2b9ccec106b6c4619cc762ea77546810f1cbfd4.tar.bz2
rneovim-f2b9ccec106b6c4619cc762ea77546810f1cbfd4.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r--src/nvim/buffer.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c
index 724a8578ac..fbfb4e02ea 100644
--- a/src/nvim/buffer.c
+++ b/src/nvim/buffer.c
@@ -3069,9 +3069,13 @@ 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 (p_icon) {
+ ui_call_set_icon(cstr_as_string((char *)lasticon));
+ }
+ if (p_title || p_icon) {
+ ui_call_set_title(cstr_as_string((char *)lasttitle));
+ ui_flush();
+ }
}
# if defined(EXITFREE)