diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2017-05-10 09:54:54 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2017-05-10 16:14:12 +0200 |
commit | 7d6af9985c057eef8f6bb2a625744df1b4ad0a72 (patch) | |
tree | 37b0cad73a42d11a9bfd65f21bd1abfae7460bf9 /src/nvim/buffer.c | |
parent | c778311505fe89e3f32ff3027f0a41f0a2b2fd95 (diff) | |
download | rneovim-7d6af9985c057eef8f6bb2a625744df1b4ad0a72.tar.gz rneovim-7d6af9985c057eef8f6bb2a625744df1b4ad0a72.tar.bz2 rneovim-7d6af9985c057eef8f6bb2a625744df1b4ad0a72.zip |
ui: cleanup UI_CALL wrappers
remove pointless control chars in the text stream
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r-- | src/nvim/buffer.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index 4ed75d8a2d..f54979eb1e 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -24,6 +24,7 @@ #include <inttypes.h> #include "nvim/api/private/handle.h" +#include "nvim/api/private/helpers.h" #include "nvim/ascii.h" #include "nvim/assert.h" #include "nvim/vim.h" @@ -3001,13 +3002,13 @@ static bool ti_change(char_u *str, char_u **last) return false; } -/* - * Put current window title back (used after calling a shell) - */ + +/// Set current window title void resettitle(void) { - ui_set_title((char *)lasttitle); - ui_set_icon((char *)lasticon); + ui_call_set_title(cstr_as_string((char *)lasttitle)); + ui_call_set_icon(cstr_as_string((char *)lasticon)); + ui_flush(); } # if defined(EXITFREE) |