diff options
author | Dominique Pelle <dominique.pelle@gmail.com> | 2021-10-18 20:56:39 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-10-18 20:56:39 +0100 |
commit | 9b0b844d252ea84b3607f39603b4afa8cb002418 (patch) | |
tree | ade943c8158efecbce6bc2075eb29860e901bfa6 /src/drawscreen.c | |
parent | 944eeb44fb6e9d6d28474a1348d27c07873892f9 (diff) | |
download | vim-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)
Diffstat (limited to 'src/drawscreen.c')
-rw-r--r-- | src/drawscreen.c | 8 |
1 files changed, 5 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) { |