0
0
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:
Dominique Pelle
2021-10-18 20:56:39 +01:00
committed by Bram Moolenaar
parent 944eeb44fb
commit 9b0b844d25
2 changed files with 7 additions and 3 deletions

View File

@@ -2305,13 +2305,15 @@ 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)
new_rows += plines_win_nofill(wp, l, TRUE)
+ wp->w_topfill;
else
else
#endif
new_rows += plines_win(wp, l, TRUE);
new_rows += plines_win(wp, l, TRUE);
}
++j;
if (new_rows > wp->w_height - row - 2)
{