Skip to content

Commit bd4593f

Browse files
committed
patch 7.4.1160
Problem: No error for jsondecode('"'). Solution: Give an error message for missing double quote.
1 parent e240c2d commit bd4593f

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

src/json.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,7 @@ json_decode_string(js_read_T *reader, typval_T *res)
406406
}
407407
else
408408
{
409+
EMSG(_(e_invarg));
409410
res->v_type = VAR_SPECIAL;
410411
res->vval.v_number = VVAL_NONE;
411412
}

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,8 @@ static char *(features[]) =
741741

742742
static int included_patches[] =
743743
{ /* Add new patch number below this line */
744+
/**/
745+
1160,
744746
/**/
745747
1159,
746748
/**/

0 commit comments

Comments
 (0)