0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

patch 7.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.
This commit is contained in:
Bram Moolenaar
2016-02-10 21:07:14 +01:00
parent d6a8d48587
commit f6157284de
4 changed files with 48 additions and 3 deletions

View File

@@ -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;