aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2017-05-10 17:39:09 +0200
committerGitHub <noreply@github.com>2017-05-10 17:39:09 +0200
commit031756c5e6a3dc2b9e811086a2531a41e4f58a19 (patch)
tree294effe35254d53766dfe2358415f26e8dd61cb9 /src/nvim/buffer.c
parentd9023b84e63f51611cf55f72ca5e021d64ba7ce9 (diff)
parent2d5920ae1ada751811e04bcc8d3a8fe4f890617a (diff)
downloadrneovim-031756c5e6a3dc2b9e811086a2531a41e4f58a19.tar.gz
rneovim-031756c5e6a3dc2b9e811086a2531a41e4f58a19.tar.bz2
rneovim-031756c5e6a3dc2b9e811086a2531a41e4f58a19.zip
Merge pull request #6618 from bfredl/ui_event
generate UI remote event wrappers and add them to metadata
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r--src/nvim/buffer.c11
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)