> Please try if this patch fixes your problem:
>
> --- prev/src/channel.c 2019-06-24 00:43:31.463691826 +0200
> +++ channel.c 2019-06-28 04:41:25.767304149 +0200
> @@ -2850,10 +2850,13 @@
>
> if (ch_mode == MODE_JSON || ch_mode == MODE_JS)
> {
> - jsonq_T *head = &channel->ch_part[part].ch_json_head;
> - jsonq_T *item = head->jq_next;
> + jsonq_T *head;
>
> - return item != NULL;
> + // Parse json from readahead before checking the queue.
> + channel_parse_json(channel, part);
> +
> + head = &channel->ch_part[part].ch_json_head;
> + return head->jq_next != NULL;
> }
> return channel_peek(channel, part) != NULL;
> }
>
Works like a charm!
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/a42e8238-2c35-44e8-88dc-1fe7137c951d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.