]> granicus.if.org Git - vim/commitdiff
patch 8.0.1621: using invalid default value for highlight attribute v8.0.1621
authorBram Moolenaar <Bram@vim.org>
Tue, 20 Mar 2018 12:00:25 +0000 (13:00 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 20 Mar 2018 12:00:25 +0000 (13:00 +0100)
Problem:    Using invalid default value for highlight attribute.
Solution:   Use zero instead of -1.

src/syntax.c
src/version.c

index d09359ab1124d49509e4a2c1514139c714e3f3a6..e945dac04549ce9cf89eeed62a21c666cb960ed6 100644 (file)
@@ -10044,11 +10044,11 @@ highlight_changed(void)
 #ifdef USER_HIGHLIGHT
     char_u      userhl[10];
 # ifdef FEAT_STL_OPT
-    int                id_SNC = -1;
     int                id_S = -1;
+    int                id_SNC = 0;
 #  ifdef FEAT_TERMINAL
-    int                id_ST = -1;
-    int                id_STNC = -1;
+    int                id_ST = 0;
+    int                id_STNC = 0;
 #  endif
     int                hlcnt;
 # endif
index acc535e5cc397d8b2f282e1845f53275111deecc..339ac9074f549ea81eb1d9c8db2faf6a8d4d75cf 100644 (file)
@@ -766,6 +766,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1621,
 /**/
     1620,
 /**/