aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/msgpack_rpc/channel.c
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2015-08-21 13:38:11 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2015-08-21 13:38:11 -0300
commitc75d5010b742db83462fc4508cf6dba455f79ca7 (patch)
treefd9cc6bd7e8a3eb4aa4f33226225efd660702e90 /src/nvim/msgpack_rpc/channel.c
parentd5b5063622ab9764a851fdf56c60d14ad0736583 (diff)
parent3d2d44037f27104207005998d9bcb55af1152892 (diff)
downloadrneovim-c75d5010b742db83462fc4508cf6dba455f79ca7.tar.gz
rneovim-c75d5010b742db83462fc4508cf6dba455f79ca7.tar.bz2
rneovim-c75d5010b742db83462fc4508cf6dba455f79ca7.zip
Merge PR #3210 'Bugfixes'
Helped-by: oni-link <knil.ino@gmail.com> Reviewed-by: oni-link <knil.ino@gmail.com>
Diffstat (limited to 'src/nvim/msgpack_rpc/channel.c')
-rw-r--r--src/nvim/msgpack_rpc/channel.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/nvim/msgpack_rpc/channel.c b/src/nvim/msgpack_rpc/channel.c
index 0e3b8200c9..d8f86cefab 100644
--- a/src/nvim/msgpack_rpc/channel.c
+++ b/src/nvim/msgpack_rpc/channel.c
@@ -93,11 +93,6 @@ void channel_init(void)
channels = pmap_new(uint64_t)();
event_strings = pmap_new(cstr_t)();
msgpack_sbuffer_init(&out_buffer);
-
- if (embedded_mode) {
- channel_from_stdio();
- }
-
remote_ui_init();
}
@@ -316,7 +311,7 @@ bool channel_close(uint64_t id)
/// Creates an API channel from stdin/stdout. This is used when embedding
/// Neovim
-static void channel_from_stdio(void)
+void channel_from_stdio(void)
{
Channel *channel = register_channel(kChannelTypeStdio);
incref(channel); // stdio channels are only closed on exit