diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2021-10-19 13:44:52 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-10-19 13:44:52 +0100 |
commit | d43d8e28db9afe693002a39e003ba1ece1a8319a (patch) | |
tree | aae9630551f288dace8d7394b508770ac8a54611 /src/highlight.c | |
parent | 75c30e96cf280a8cc01ac01c41a9252db3e503cc (diff) | |
download | vim-git-d43d8e28db9afe693002a39e003ba1ece1a8319a.tar.gz |
patch 8.2.3538: else-if indenting is confusingv8.2.3538
Problem: Else-if indenting is confusing.
Solution: Add curly brackets. (Yegappan Lakshmanan, closes #9017)
Diffstat (limited to 'src/highlight.c')
-rw-r--r-- | src/highlight.c | 10 |
1 files changed, 6 insertions, 4 deletions
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"; |