forked from aniani/vim
patch 8.2.3538: else-if indenting is confusing
Problem: Else-if indenting is confusing. Solution: Add curly brackets. (Yegappan Lakshmanan, closes #9017)
This commit is contained in:
committed by
Bram Moolenaar
parent
75c30e96cf
commit
d43d8e28db
@@ -2819,10 +2819,12 @@ highlight_has_attr(
|
|||||||
attr = HL_TABLE()[id - 1].sg_gui;
|
attr = HL_TABLE()[id - 1].sg_gui;
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
if (modec == 'c')
|
{
|
||||||
attr = HL_TABLE()[id - 1].sg_cterm;
|
if (modec == 'c')
|
||||||
else
|
attr = HL_TABLE()[id - 1].sg_cterm;
|
||||||
attr = HL_TABLE()[id - 1].sg_term;
|
else
|
||||||
|
attr = HL_TABLE()[id - 1].sg_term;
|
||||||
|
}
|
||||||
|
|
||||||
if (attr & flag)
|
if (attr & flag)
|
||||||
return (char_u *)"1";
|
return (char_u *)"1";
|
||||||
|
@@ -757,6 +757,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
3538,
|
||||||
/**/
|
/**/
|
||||||
3537,
|
3537,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user