From: Yegappan Lakshmanan Date: Tue, 19 Oct 2021 12:44:52 +0000 (+0100) Subject: patch 8.2.3538: else-if indenting is confusing X-Git-Tag: v8.2.3538 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d43d8e28db9afe693002a39e003ba1ece1a8319a;p=vim patch 8.2.3538: else-if indenting is confusing Problem: Else-if indenting is confusing. Solution: Add curly brackets. (Yegappan Lakshmanan, closes #9017) --- diff --git a/src/highlight.c b/src/highlight.c index 44a7c6623..a964acda8 100644 --- a/src/highlight.c +++ b/src/highlight.c @@ -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"; diff --git a/src/version.c b/src/version.c index 2e076cbee..2a3e08dc6 100644 --- a/src/version.c +++ b/src/version.c @@ -757,6 +757,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 3538, /**/ 3537, /**/