Skip to content

Commit 4f49591

Browse files
committed
updated for version 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)
1 parent e08d20f commit 4f49591

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/ops.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3831,6 +3831,9 @@ do_put(regname, dir, count, flags)
38313831
lnum++;
38323832
} while (VIsual_active && lnum <= curbuf->b_visual.vi_end.lnum);
38333833

3834+
if (VIsual_active) /* reset lnum to the last visual line */
3835+
lnum--;
3836+
38343837
curbuf->b_op_end = curwin->w_cursor;
38353838
/* For "CTRL-O p" in Insert mode, put cursor after last char */
38363839
if (totlen && (restart_edit != 0 || (flags & PUT_CURSEND)))

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,8 @@ static char *(features[]) =
741741

742742
static int included_patches[] =
743743
{ /* Add new patch number below this line */
744+
/**/
745+
521,
744746
/**/
745747
520,
746748
/**/

0 commit comments

Comments
 (0)