]> granicus.if.org Git - vim/commitdiff
patch 8.2.1118: condition can never be true, dead code v8.2.1118
authorBram Moolenaar <Bram@vim.org>
Thu, 2 Jul 2020 19:23:42 +0000 (21:23 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 2 Jul 2020 19:23:42 +0000 (21:23 +0200)
Problem:    Condition can never be true, dead code.
Solution:   Remove the dead code.

src/move.c
src/version.c

index 5b3fb35fb41177ef8bfb3d2bdc3422f97b01811a..ec1ad38ad7711828ece170877210c6ab99297b2a 100644 (file)
@@ -2681,8 +2681,6 @@ halfpage(int flag, linenr_T Prenum)
            if (curwin->w_topfill > 0)
            {
                i = 1;
-               if (--n < 0 && scrolled > 0)
-                   break;
                --curwin->w_topfill;
            }
            else
index 2d9455929eb365499a90b0f7cf2166d4479d1fb8..c334ec686c918286ee71569f1b0e239d00482a4b 100644 (file)
@@ -754,6 +754,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1118,
 /**/
     1117,
 /**/