summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominique Pelle <dominique.pelle@gmail.com>2021-10-18 20:56:39 +0100
committerBram Moolenaar <Bram@vim.org>2021-10-18 20:56:39 +0100
commit9b0b844d252ea84b3607f39603b4afa8cb002418 (patch)
treeade943c8158efecbce6bc2075eb29860e901bfa6
parent944eeb44fb6e9d6d28474a1348d27c07873892f9 (diff)
downloadvim-git-9b0b844d252ea84b3607f39603b4afa8cb002418.tar.gz
patch 8.2.3535: if-else indenting is confusingv8.2.3535
Problem: If-else indenting is confusing. Solution: Add curly brackets and indent. (Dominique Pellé, closes #9010)
-rw-r--r--src/drawscreen.c8
-rw-r--r--src/version.c2
2 files changed, 7 insertions, 3 deletions
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
@@ -758,6 +758,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 3535,
+/**/
3534,
/**/
3533,