]> granicus.if.org Git - vim/commitdiff
patch 8.0.0180: error E937 is used twice v8.0.0180
authorBram Moolenaar <Bram@vim.org>
Sat, 14 Jan 2017 13:36:08 +0000 (14:36 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 14 Jan 2017 13:36:08 +0000 (14:36 +0100)
Problem:    Error E937 is used both for duplicate key in JSON and for trying
            to delete a buffer that is in use.
Solution:   Rename the JSON error to E938. (Norio Takagi, closes #1376)

src/json.c
src/testdir/test_json.vim
src/version.c

index faaeab35cc124be344b99f34da6867315808b0a0..a9333cf0768df5ec698683b6b1579dfab17d4f51 100644 (file)
@@ -936,7 +936,7 @@ item_end:
                        && dict_find(top_item->jd_tv.vval.v_dict,
                                                 top_item->jd_key, -1) != NULL)
                {
-                   EMSG2(_("E937: Duplicate key in JSON: \"%s\""),
+                   EMSG2(_("E938: Duplicate key in JSON: \"%s\""),
                                                             top_item->jd_key);
                    clear_tv(&top_item->jd_key_tv);
                    clear_tv(cur_item);
index bd348fc42ebebaa3de13111b88e6a2ce2889a0b4..661636513423b53b0b5ca5ceb5fa4259127b2415 100644 (file)
@@ -152,7 +152,7 @@ func Test_json_decode()
   call assert_fails('call json_decode("blah")', "E474:")
   call assert_fails('call json_decode("true blah")', "E488:")
   call assert_fails('call json_decode("<foobar>")', "E474:")
-  call assert_fails('call json_decode("{\"a\":1,\"a\":2}")', "E937:")
+  call assert_fails('call json_decode("{\"a\":1,\"a\":2}")', "E938:")
 
   call assert_fails('call json_decode("{")', "E474:")
   call assert_fails('call json_decode("{foobar}")', "E474:")
index dd5f700f863f1cc3d03f2a2f4de2096c2dd91f0d..7b576afccf5b13e69daa62fd24373be1c24f5675 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    180,
 /**/
     179,
 /**/