From: Dominique Pelle Date: Mon, 18 Oct 2021 19:56:39 +0000 (+0100) Subject: patch 8.2.3535: if-else indenting is confusing X-Git-Tag: v8.2.3535 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9b0b844d252ea84b3607f39603b4afa8cb002418;p=vim 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) --- diff --git a/src/drawscreen.c b/src/drawscreen.c index e38ca9586..52f627345 100644 --- a/src/drawscreen.c +++ b/src/drawscreen.c @@ -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) { diff --git a/src/version.c b/src/version.c index 6599ae05a..555bd8eb6 100644 --- a/src/version.c +++ b/src/version.c @@ -757,6 +757,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 3535, /**/ 3534, /**/