forked from aniani/vim
patch 8.2.4704: using "else" after return or break increases indent
Problem: Using "else" after return or break increases indent. Solution: Remove "else" and reduce indent. (Goc Dundar, closes #10099)
This commit is contained in:
committed by
Bram Moolenaar
parent
cb49a1d934
commit
f26c16144d
@@ -1245,8 +1245,7 @@ retry:
|
||||
read_buf_col += n;
|
||||
break;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
// Append whole line and new-line. Change NL
|
||||
// to NUL to reverse the effect done below.
|
||||
for (ni = 0; ni < n; ++ni)
|
||||
@@ -1268,7 +1267,7 @@ retry:
|
||||
eof = TRUE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -3165,8 +3165,7 @@ ml_append_int(
|
||||
*/
|
||||
break;
|
||||
}
|
||||
else // pointer block full
|
||||
{
|
||||
// pointer block full
|
||||
/*
|
||||
* split the pointer block
|
||||
* allocate a new pointer block
|
||||
@@ -3252,7 +3251,7 @@ ml_append_int(
|
||||
page_count_right = 1;
|
||||
mf_put(mfp, hp, TRUE, FALSE);
|
||||
mf_put(mfp, hp_new, TRUE, FALSE);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
|
@@ -4384,8 +4384,7 @@ set_option_value(
|
||||
#endif
|
||||
if (flags & P_STRING)
|
||||
return set_string_option(opt_idx, string, opt_flags);
|
||||
else
|
||||
{
|
||||
|
||||
varp = get_varp_scope(&(options[opt_idx]), opt_flags);
|
||||
if (varp != NULL) // hidden option is not changed
|
||||
{
|
||||
@@ -4412,10 +4411,9 @@ set_option_value(
|
||||
return set_num_option(opt_idx, varp, number,
|
||||
NULL, 0, opt_flags);
|
||||
else
|
||||
return set_bool_option(opt_idx, varp, (int)number,
|
||||
opt_flags);
|
||||
}
|
||||
return set_bool_option(opt_idx, varp, (int)number, opt_flags);
|
||||
}
|
||||
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
@@ -2504,8 +2504,7 @@ check_state_ends(void)
|
||||
next_match_col = MAXCOL;
|
||||
break;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
// handle next_list, unless at end of line and no "skipnl" or
|
||||
// "skipempty"
|
||||
current_next_list = cur_si->si_next_list;
|
||||
@@ -2554,7 +2553,6 @@ check_state_ends(void)
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
break;
|
||||
}
|
||||
|
@@ -746,6 +746,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
4704,
|
||||
/**/
|
||||
4703,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user