mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
updated for version 7.3.362
Problem: ml_get error when using ":g" with folded lines. Solution: Adjust the line number for changed_lines(). (Christian Brabandt)
This commit is contained in:
@@ -820,7 +820,13 @@ do_move(line1, line2, dest)
|
|||||||
curwin->w_cursor.lnum = dest + (line2 - line1) + 1;
|
curwin->w_cursor.lnum = dest + (line2 - line1) + 1;
|
||||||
|
|
||||||
if (line1 < dest)
|
if (line1 < dest)
|
||||||
changed_lines(line1, 0, dest + num_lines + 1, 0L);
|
{
|
||||||
|
dest += num_lines + 1;
|
||||||
|
last_line = curbuf->b_ml.ml_line_count;
|
||||||
|
if (dest > last_line + 1)
|
||||||
|
dest = last_line + 1;
|
||||||
|
changed_lines(line1, 0, dest, 0L);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
changed_lines(dest + 1, 0, line1 + num_lines, 0L);
|
changed_lines(dest + 1, 0, line1 + num_lines, 0L);
|
||||||
|
|
||||||
|
@@ -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 */
|
||||||
|
/**/
|
||||||
|
362,
|
||||||
/**/
|
/**/
|
||||||
361,
|
361,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user