diff options
| author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-10-28 11:04:55 -0300 |
|---|---|---|
| committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-10-28 11:04:55 -0300 |
| commit | 7797991ba50c0d76f7750cb821dca085a1f40c7e (patch) | |
| tree | 67cdd4270fc25b542841949d2d6aa571b1c51aee /src/nvim/msgpack_rpc/channel.c | |
| parent | 65942d3a8d84510fcee2dd1c6306a5af13296c84 (diff) | |
| parent | c95bc3349b6df13d8a4b5c1c7f3440e4578b266c (diff) | |
| download | rneovim-7797991ba50c0d76f7750cb821dca085a1f40c7e.tar.gz rneovim-7797991ba50c0d76f7750cb821dca085a1f40c7e.tar.bz2 rneovim-7797991ba50c0d76f7750cb821dca085a1f40c7e.zip | |
Merge PR #1354 'Fixes to channel.c, input.c and helpers.lua'
Diffstat (limited to 'src/nvim/msgpack_rpc/channel.c')
| -rw-r--r-- | src/nvim/msgpack_rpc/channel.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/msgpack_rpc/channel.c b/src/nvim/msgpack_rpc/channel.c index 3325b294dd..43bed54b2c 100644 --- a/src/nvim/msgpack_rpc/channel.c +++ b/src/nvim/msgpack_rpc/channel.c @@ -338,6 +338,8 @@ static void parse_msgpack(RStream *rstream, void *data, bool eof) if (eof) { close_channel(channel); + call_set_error(channel, "Channel was closed by the client"); + return; } size_t count = rstream_pending(rstream); @@ -730,7 +732,7 @@ static WBuffer *serialize_response(uint64_t channel_id, } #if MIN_LOG_LEVEL <= DEBUG_LOG_LEVEL -#define REQ "[response] " +#define REQ "[request] " #define RES "[response] " #define NOT "[notification] " |
