summaryrefslogtreecommitdiffstats
path: root/src/channel.c
diff options
context:
space:
mode:
authorYegappan Lakshmanan <yegappan@yahoo.com>2022-04-19 10:25:13 +0100
committerBram Moolenaar <Bram@vim.org>2022-04-19 10:25:13 +0100
commitbac9a9e5c233dcf9cf734c61e4e4311fe57eccd1 (patch)
tree6f39b0b5f9405ca4791d568b5c83ee08c5fb7564 /src/channel.c
parent9bd3ce22e36b5760a5e22e7d34d1bd6a3411258e (diff)
patch 8.2.4788: large payload for LSP message not testedv8.2.4788
Problem: Large payload for LSP message not tested. Solution: Add a test with a large LSP payload. (Yegappan Lakshmanan, closes #10223)
Diffstat (limited to 'src/channel.c')
-rw-r--r--src/channel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/channel.c b/src/channel.c
index b981af4006..87dc00cd0c 100644
--- a/src/channel.c
+++ b/src/channel.c
@@ -2031,6 +2031,8 @@ channel_consume(channel_T *channel, ch_part_T part, int len)
* Collapses the first and second buffer for "channel"/"part".
* Returns FAIL if that is not possible.
* When "want_nl" is TRUE collapse more buffers until a NL is found.
+ * When the channel part mode is "lsp", collapse all the buffers as the http
+ * header and the JSON content can be present in multiple buffers.
*/
int
channel_collapse(channel_T *channel, ch_part_T part, int want_nl)