summaryrefslogtreecommitdiffstats
path: root/src/drawscreen.c
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 /src/drawscreen.c
parent944eeb44fb6e9d6d28474a1348d27c07873892f9 (diff)
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)
Diffstat (limited to 'src/drawscreen.c')
-rw-r--r--src/drawscreen.c8
1 files changed, 5 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)
{