aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-10-07 18:05:02 +0200
committerGitHub <noreply@github.com>2017-10-07 18:05:02 +0200
commitd916ea107a243768ff5b272a0bf2522e42f51b65 (patch)
treefe19dea6916461b6107a13dafdf58c31f4a1876d /src
parente3ca1e604630d930ddc49fccb9a1541d381b1915 (diff)
downloadrneovim-d916ea107a243768ff5b272a0bf2522e42f51b65.tar.gz
rneovim-d916ea107a243768ff5b272a0bf2522e42f51b65.tar.bz2
rneovim-d916ea107a243768ff5b272a0bf2522e42f51b65.zip
resettitle(): remove conditions (#7360)
These conditions were added in #7358 for no apparent reason. ref https://github.com/neovim/neovim/pull/7358#discussion_r143064448
Diffstat (limited to 'src')
-rw-r--r--src/nvim/buffer.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c
index fbfb4e02ea..fc5bb90973 100644
--- a/src/nvim/buffer.c
+++ b/src/nvim/buffer.c
@@ -3069,13 +3069,9 @@ static bool ti_change(char_u *str, char_u **last)
/// Set current window title
void resettitle(void)
{
- 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();
- }
+ ui_call_set_icon(cstr_as_string((char *)lasticon));
+ ui_call_set_title(cstr_as_string((char *)lasttitle));
+ ui_flush();
}
# if defined(EXITFREE)