aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nvim/msgpack_rpc/channel.c26
-rw-r--r--src/nvim/version.c24
2 files changed, 36 insertions, 14 deletions
diff --git a/src/nvim/msgpack_rpc/channel.c b/src/nvim/msgpack_rpc/channel.c
index c8f8252e6d..920274f850 100644
--- a/src/nvim/msgpack_rpc/channel.c
+++ b/src/nvim/msgpack_rpc/channel.c
@@ -442,17 +442,18 @@ static void handle_request(Channel *channel, msgpack_object *request)
if (error.set) {
// Validation failed, send response with error
- channel_write(channel,
- serialize_response(channel->id,
- request_id,
- &error,
- NIL,
- &out_buffer));
- char buf[256];
- snprintf(buf, sizeof(buf),
- "Channel %" PRIu64 " sent an invalid message, closing.",
- channel->id);
- call_set_error(channel, buf);
+ if (channel_write(channel,
+ serialize_response(channel->id,
+ request_id,
+ &error,
+ NIL,
+ &out_buffer))) {
+ char buf[256];
+ snprintf(buf, sizeof(buf),
+ "Channel %" PRIu64 " sent an invalid message, closing.",
+ channel->id);
+ call_set_error(channel, buf);
+ }
return;
}
@@ -619,8 +620,7 @@ static void unsubscribe(Channel *channel, char *event)
free(event_string);
}
-/// Close the channel streams/job. The channel resources will be freed by
-/// free_channel later.
+/// Close the channel streams/job and free the channel resources.
static void close_channel(Channel *channel)
{
if (channel->closed) {
diff --git a/src/nvim/version.c b/src/nvim/version.c
index 612408c414..b0bd38b7de 100644
--- a/src/nvim/version.c
+++ b/src/nvim/version.c
@@ -178,6 +178,28 @@ static char *(features[]) = {
};
static int included_patches[] = {
+ //589 NA
+ //588,
+ //587,
+ //586 NA
+ //585,
+ //584 NA
+ //583 NA
+ //582,
+ //581,
+ //580,
+ //579,
+ //578,
+ //577,
+ //576,
+ //575,
+ //574,
+ //573,
+ //572,
+ //571 NA
+ //570 NA
+ //569,
+ //568,
567,
//566,
//565,
@@ -294,7 +316,7 @@ static int included_patches[] = {
454,
//453 NA
452,
- //451,
+ //451 NA
450,
449,
//448 NA