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,6 +2305,7 @@ win_update(win_T *wp)
|
||||
++new_rows;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
#ifdef FEAT_DIFF
|
||||
if (l == wp->w_topline)
|
||||
new_rows += plines_win_nofill(wp, l, TRUE)
|
||||
@@ -2312,6 +2313,7 @@ win_update(win_T *wp)
|
||||
else
|
||||
#endif
|
||||
new_rows += plines_win(wp, l, TRUE);
|
||||
}
|
||||
++j;
|
||||
if (new_rows > wp->w_height - row - 2)
|
||||
{
|
||||
|
@@ -757,6 +757,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
3535,
|
||||
/**/
|
||||
3534,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user