> > 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!

Thanks for checking, I'll include that change then.
Would be nice to have a test, but that may take some effort to create.

-- 
Facepalm reply #3: "I had a great time in Manhattan" "I thought you were
going to New York?"

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/201906282007.x5SK7IWw005549%40masaka.moolenaar.net.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui