# HG changeset patch # User Bram Moolenaar # Date 1593718204 -7200 # Node ID 0abcf69baddaabf4d94962a1fe5b855ea9b8928e # Parent a5fec5bd4e7b3f50ae55c0809709a979cbdf6cf4 patch 8.2.1118: condition can never be true, dead code Commit: https://github.com/vim/vim/commit/810af5ea460eab820cc5899892067d8c242be688 Author: Bram Moolenaar Date: Thu Jul 2 21:23:42 2020 +0200 patch 8.2.1118: condition can never be true, dead code Problem: Condition can never be true, dead code. Solution: Remove the dead code. diff --git a/src/move.c b/src/move.c --- a/src/move.c +++ b/src/move.c @@ -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 diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -755,6 +755,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1118, +/**/ 1117, /**/ 1116,