vim-patch:7.4.521

Problem:    When using "vep" a mark is moved to the next line. (Maxi Padulo,
	    Issue 283)
Solution:   Decrement the line number. (Christian Brabandt)

https://code.google.com/p/vim/source/detail?r=v7-4-521
This commit is contained in:
Florian Walch 2014-12-24 13:57:26 +01:00
parent f13b90c064
commit 0439e808cb
2 changed files with 6 additions and 4 deletions

View File

@ -2979,9 +2979,11 @@ do_put (
}
if (VIsual_active)
lnum++;
} while (
VIsual_active && lnum <= curbuf->b_visual.vi_end.lnum
);
} while (VIsual_active && lnum <= curbuf->b_visual.vi_end.lnum);
if (VIsual_active) { /* reset lnum to the last visual line */
lnum--;
}
curbuf->b_op_end = curwin->w_cursor;
/* For "CTRL-O p" in Insert mode, put cursor after last char */

View File

@ -217,7 +217,7 @@ static int included_patches[] = {
//524,
//523 NA
//522,
//521,
521,
520,
//519,
518,