From 9b0b844d252ea84b3607f39603b4afa8cb002418 Mon Sep 17 00:00:00 2001 From: Dominique Pelle Date: Mon, 18 Oct 2021 20:56:39 +0100 Subject: [PATCH] patch 8.2.3535: if-else indenting is confusing MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Problem: If-else indenting is confusing. Solution: Add curly brackets and indent. (Dominique Pellé, closes #9010) --- src/drawscreen.c | 8 +++++--- src/version.c | 2 ++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/drawscreen.c b/src/drawscreen.c index e38ca95863..52f6273451 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 6599ae05af..555bd8eb69 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, /**/ -- 2.47.3