# HG changeset patch # User Bram Moolenaar # Date 1403711891 -7200 # Node ID 539ce56d8f35fe2deb5c4f57335e1adf97ae4e74 # Parent cd0a16ae747d0e14dc3fa67def6d33037a8dc9fd updated for version 7.4.343 Problem: matchdelete() does not always update the right lines. Solution: Fix off-by-one error. (Ozaki Kiichi) diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -735,6 +735,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 343, +/**/ 342, /**/ 341, diff --git a/src/window.c b/src/window.c --- a/src/window.c +++ b/src/window.c @@ -6891,8 +6891,8 @@ match_add(wp, grp, pat, prio, id, pos_li } if (toplnum == 0 || lnum < toplnum) toplnum = lnum; - if (botlnum == 0 || lnum > botlnum) - botlnum = lnum; + if (botlnum == 0 || lnum >= botlnum) + botlnum = lnum + 1; } /* Calculate top and bottom lines for redrawing area */