Mercurial > vim
changeset 6005:539ce56d8f35 v7.4.343
updated for version 7.4.343
Problem: matchdelete() does not always update the right lines.
Solution: Fix off-by-one error. (Ozaki Kiichi)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 25 Jun 2014 17:58:11 +0200 |
parents | cd0a16ae747d |
children | 458f55308d63 |
files | src/version.c src/window.c |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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,
--- 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 */