> This is a patch that actually fixes the problem, but I have no idea what > other side effects it might have. Also note that the line numbers are way off > since I've been adding stuff. > > @@ -2853,7 +2853,7 @@ channel_has_readahead(channel_T *channel, ch_part_T > part) > jsonq_T *head = &channel->ch_part[part].ch_json_head; > jsonq_T *item = head->jq_next; > > - return item != NULL; > + return (item != NULL) || (channel_peek(channel, part) != NULL); > } > return channel_peek(channel, part) != NULL; > }
That doesn't look right, because there should not be a complete json message. If there is, perhaps a call to parse it is missing? Perhaps a call to channel_parse_json() is needed. -- hundred-and-one symptoms of being an internet addict: 267. You get an extra phone line so you can get phone calls. /// 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/201906250213.x5P2D8Xd007297%40masaka.moolenaar.net. For more options, visit https://groups.google.com/d/optout.