# HG changeset patch # User Bram Moolenaar # Date 1634647503 -7200 # Node ID 990958e8c3a2f41f1ee746c6d4a5a3f0a2b1ef5b # Parent 7a335021103c48ffa11aeecc04541dc0349ce8e3 patch 8.2.3538: else-if indenting is confusing Commit: https://github.com/vim/vim/commit/d43d8e28db9afe693002a39e003ba1ece1a8319a Author: Yegappan Lakshmanan Date: Tue Oct 19 13:44:52 2021 +0100 patch 8.2.3538: else-if indenting is confusing Problem: Else-if indenting is confusing. Solution: Add curly brackets. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/9017) diff --git a/src/highlight.c b/src/highlight.c --- 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 --- a/src/version.c +++ b/src/version.c @@ -758,6 +758,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 3538, +/**/ 3537, /**/ 3536,