]> granicus.if.org Git - vim/commitdiff
patch 8.2.3538: else-if indenting is confusing v8.2.3538
authorYegappan Lakshmanan <yegappan@yahoo.com>
Tue, 19 Oct 2021 12:44:52 +0000 (13:44 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 19 Oct 2021 12:44:52 +0000 (13:44 +0100)
Problem:    Else-if indenting is confusing.
Solution:   Add curly brackets. (Yegappan Lakshmanan, closes #9017)

src/highlight.c
src/version.c

index 44a7c6623d3e987c1e729e4ebe528bdfd05ef2c8..a964acda8ddb1cea6d9a648a1c05c05b135a1aff 100644 (file)
@@ -2819,10 +2819,12 @@ highlight_has_attr(
        attr = HL_TABLE()[id - 1].sg_gui;
     else
 #endif
-        if (modec == 'c')
-       attr = HL_TABLE()[id - 1].sg_cterm;
-    else
-       attr = HL_TABLE()[id - 1].sg_term;
+    {
+       if (modec == 'c')
+           attr = HL_TABLE()[id - 1].sg_cterm;
+       else
+           attr = HL_TABLE()[id - 1].sg_term;
+    }
 
     if (attr & flag)
        return (char_u *)"1";
index 2e076cbee1ad76b40d66752ff5d9d53ec3e334e2..2a3e08dc6da2a24bf93caa629bf0cd324734c045 100644 (file)
@@ -757,6 +757,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3538,
 /**/
     3537,
 /**/