mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.2.3535: if-else indenting is confusing
Problem: If-else indenting is confusing. Solution: Add curly brackets and indent. (Dominique Pellé, closes #9010)
This commit is contained in:
committed by
Bram Moolenaar
parent
944eeb44fb
commit
9b0b844d25
@@ -2305,13 +2305,15 @@ win_update(win_T *wp)
|
|||||||
++new_rows;
|
++new_rows;
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
|
{
|
||||||
#ifdef FEAT_DIFF
|
#ifdef FEAT_DIFF
|
||||||
if (l == wp->w_topline)
|
if (l == wp->w_topline)
|
||||||
new_rows += plines_win_nofill(wp, l, TRUE)
|
new_rows += plines_win_nofill(wp, l, TRUE)
|
||||||
+ wp->w_topfill;
|
+ wp->w_topfill;
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
new_rows += plines_win(wp, l, TRUE);
|
new_rows += plines_win(wp, l, TRUE);
|
||||||
|
}
|
||||||
++j;
|
++j;
|
||||||
if (new_rows > wp->w_height - row - 2)
|
if (new_rows > wp->w_height - row - 2)
|
||||||
{
|
{
|
||||||
|
@@ -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 */
|
||||||
|
/**/
|
||||||
|
3535,
|
||||||
/**/
|
/**/
|
||||||
3534,
|
3534,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user