0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 7.4.1231

Problem:    JSON messages are not parsed properly.
Solution:   Queue received messages.
This commit is contained in:
Bram Moolenaar
2016-02-01 21:38:19 +01:00
parent ca568aeec6
commit 19d2f15898
7 changed files with 306 additions and 185 deletions

View File

@@ -549,14 +549,16 @@ json_decode_item(js_read_T *reader, typval_T *res)
/*
* Decode the JSON from "reader" and store the result in "res".
* Return OK or FAIL;
*/
void
int
json_decode(js_read_T *reader, typval_T *res)
{
json_skip_white(reader);
json_decode_item(reader, res);
json_skip_white(reader);
if (reader->js_buf[reader->js_used] != NUL)
EMSG(_(e_invarg));
return FAIL;
return OK;
}
#endif