diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-02-10 21:07:14 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-02-10 21:07:14 +0100 |
commit | f6157284de71d8881f3b89fbd79d1ecbf842929f (patch) | |
tree | 44a698ec890f1b71930999b492865d74670f4c9c /src/channel.c | |
parent | d6a8d48587b2ff43c343fa365898576cc1e235ea (diff) | |
download | vim-git-f6157284de71d8881f3b89fbd79d1ecbf842929f.tar.gz |
patch 7.4.1299v7.4.1299
Problem: When the server sends a message with ID zero the channel handler
is not invoked. (Christian J. Robinson)
Solution: Recognize zero value for the request ID. Add a test for invoking
the channel handler.
Diffstat (limited to 'src/channel.c')
-rw-r--r-- | src/channel.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/channel.c b/src/channel.c index 50dd18087..af282cdae 100644 --- a/src/channel.c +++ b/src/channel.c @@ -786,6 +786,7 @@ channel_get_json(int ch_idx, int id, typval_T **rettv) if ((id > 0 && tv->v_type == VAR_NUMBER && tv->vval.v_number == id) || (id <= 0 && (tv->v_type != VAR_NUMBER + || tv->vval.v_number == 0 || tv->vval.v_number != channel->ch_block_id))) { *rettv = item->value; |