diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-10-05 09:14:18 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-10-05 09:18:33 +0200 |
commit | 70e84a7c4c7bfad9b3a0ec18fd219f51205c03f8 (patch) | |
tree | 6b0a00509090826517ed3f1f956b8440ae7f23ee /src/nvim/buffer.c | |
parent | 5f4d2edeeea4d05761811d652dee8067fdbbae2a (diff) | |
download | rneovim-70e84a7c4c7bfad9b3a0ec18fd219f51205c03f8.tar.gz rneovim-70e84a7c4c7bfad9b3a0ec18fd219f51205c03f8.tar.bz2 rneovim-70e84a7c4c7bfad9b3a0ec18fd219f51205c03f8.zip |
'titleold': simplify behavior
- default 'titleold' to empty
- set title on exit if 'title' is enabled and 'titleold' is non-empty
- update docs
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r-- | src/nvim/buffer.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index 950010b13b..fbfb4e02ea 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -3069,14 +3069,11 @@ static bool ti_change(char_u *str, char_u **last) /// Set current window title void resettitle(void) { - // 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_call_set_title(cstr_as_string((char *)lasttitle)); ui_flush(); } } |