diff options
author | Bram Moolenaar <Bram@vim.org> | 2012-03-07 19:30:36 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2012-03-07 19:30:36 +0100 |
commit | 9e98edfe8f8503a3ea84da714bbb5ef37364199e (patch) | |
tree | 6442ec75b231b5db834ea4416694e29b37ae092f | |
parent | 146e9c38866248ff92f6109c536bbe79744256f5 (diff) |
updated for version 7.3.466v7.3.466
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)
-rw-r--r-- | src/ops.c | 3 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 5 insertions, 0 deletions
@@ -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))) diff --git a/src/version.c b/src/version.c index 6d6261fe2e..fca10e9945 100644 --- a/src/version.c +++ b/src/version.c @@ -715,6 +715,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 466, +/**/ 465, /**/ 464, |