]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.466 v7.3.466
authorBram Moolenaar <Bram@vim.org>
Wed, 7 Mar 2012 18:30:36 +0000 (19:30 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 7 Mar 2012 18:30:36 +0000 (19:30 +0100)
Problem:    Get ml_get error hen ":behave mswin" was used and selecting
            several lines.  (A. Sinan Unur)
Solution:   Adjust the end of the operation. (Christian Brabandt)

src/ops.c
src/version.c

index e8362cd5f56449b18c058efdf2fc39d2c6ac88a6..1ddff2882416baa8c95a09efc335c7c843bf6dfb 100644 (file)
--- a/src/ops.c
+++ b/src/ops.c
@@ -1957,6 +1957,9 @@ op_delete(oap)
            ++curwin->w_cursor.lnum;
            del_lines((long)(oap->line_count - 2), FALSE);
 
+           if (delete_last_line)
+               oap->end.lnum = curbuf->b_ml.ml_line_count;
+
            n = (oap->end.col + 1 - !oap->inclusive);
            if (oap->inclusive && delete_last_line
                    && n > (int)STRLEN(ml_get(oap->end.lnum)))
index 6d6261fe2e5e8cf2789001046304a63a3423773d..fca10e9945f39bfbcb5203b4d4f7082b312aa6f0 100644 (file)
@@ -714,6 +714,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    466,
 /**/
     465,
 /**/