]> granicus.if.org Git - vim/commitdiff
updated for version 7.4.343 v7.4.343
authorBram Moolenaar <Bram@vim.org>
Wed, 25 Jun 2014 15:58:11 +0000 (17:58 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 25 Jun 2014 15:58:11 +0000 (17:58 +0200)
Problem:    matchdelete() does not always update the right lines.
Solution:   Fix off-by-one error.  (Ozaki Kiichi)

src/version.c
src/window.c

index 3fdfae5497b767ce24bb7de73f10fe6b33fb4a2c..8282a834b93216e82a01a01dc8eee20a2c20084b 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    343,
 /**/
     342,
 /**/
index ae82fe7db5f0f14cd8d0a1989b4dbd6509d93c13..914f88e0bd026ccec0ff6acd32a9cca845caf16e 100644 (file)
@@ -6891,8 +6891,8 @@ match_add(wp, grp, pat, prio, id, pos_list)
            }
            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 */