]> granicus.if.org Git - vim/commitdiff
updated for version 7.4.390 v7.4.390
authorBram Moolenaar <Bram@vim.org>
Wed, 6 Aug 2014 10:49:18 +0000 (12:49 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 6 Aug 2014 10:49:18 +0000 (12:49 +0200)
Problem:    Advancing pointer over end of a string.
Solution:   Init quote character to -1 instead of zero. (Dominique Pelle)

src/misc1.c
src/version.c

index 3a834aa0cfeb50f90cc59963ed33234004bb2f8f..2c28aae84c54066af2dfe4e3a2bb40dc06328502 100644 (file)
@@ -5503,7 +5503,7 @@ cin_has_js_key(text)
     char_u *text;
 {
     char_u *s = skipwhite(text);
-    int            quote = 0;
+    int            quote = -1;
 
     if (*s == '\'' || *s == '"')
     {
index d5aaa905001883c601fffe39ea7dcdfbf16c86eb..d2de43f7ac2ec58017ace23d84ee76f5b545f274 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    390,
 /**/
     389,
 /**/