]> granicus.if.org Git - vim/commitdiff
patch 8.2.3535: if-else indenting is confusing v8.2.3535
authorDominique Pelle <dominique.pelle@gmail.com>
Mon, 18 Oct 2021 19:56:39 +0000 (20:56 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 18 Oct 2021 19:56:39 +0000 (20:56 +0100)
Problem:    If-else indenting is confusing.
Solution:   Add curly brackets and indent. (Dominique PellĂ©, closes #9010)

src/drawscreen.c
src/version.c

index e38ca95863b36c51026b4d99c8b16a70141d0f8e..52f6273451f3ac8b83a1e4e6e137c152041608d8 100644 (file)
@@ -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)
                        {
index 6599ae05af60e150e261ce2c500c1ac6e880a8be..555bd8eb693de12909c062b3aaaa5e7646aa27ca 100644 (file)
@@ -757,6 +757,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3535,
 /**/
     3534,
 /**/