forked from aniani/vim
updated for version 7.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)
This commit is contained in:
@@ -1957,6 +1957,9 @@ op_delete(oap)
|
|||||||
++curwin->w_cursor.lnum;
|
++curwin->w_cursor.lnum;
|
||||||
del_lines((long)(oap->line_count - 2), FALSE);
|
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);
|
n = (oap->end.col + 1 - !oap->inclusive);
|
||||||
if (oap->inclusive && delete_last_line
|
if (oap->inclusive && delete_last_line
|
||||||
&& n > (int)STRLEN(ml_get(oap->end.lnum)))
|
&& n > (int)STRLEN(ml_get(oap->end.lnum)))
|
||||||
|
@@ -714,6 +714,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
466,
|
||||||
/**/
|
/**/
|
||||||
465,
|
465,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user