diff src/misc1.c @ 6104:d3a674f6c737 v7.4.390

updated for version 7.4.390 Problem: Advancing pointer over end of a string. Solution: Init quote character to -1 instead of zero. (Dominique Pelle)
author Bram Moolenaar <bram@vim.org>
date Wed, 06 Aug 2014 12:49:18 +0200
parents 9a4efda75b5e
children 65b0974c5beb
line wrap: on
line diff
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -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 == '"')
     {