0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 7.4.1160

Problem:    No error for jsondecode('"').
Solution:   Give an error message for missing double quote.
This commit is contained in:
Bram Moolenaar
2016-01-23 22:51:07 +01:00
parent e240c2da79
commit bd4593ffb1
2 changed files with 3 additions and 0 deletions

View File

@@ -406,6 +406,7 @@ json_decode_string(js_read_T *reader, typval_T *res)
} }
else else
{ {
EMSG(_(e_invarg));
res->v_type = VAR_SPECIAL; res->v_type = VAR_SPECIAL;
res->vval.v_number = VVAL_NONE; res->vval.v_number = VVAL_NONE;
} }

View File

@@ -741,6 +741,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1160,
/**/ /**/
1159, 1159,
/**/ /**/