Skip to content

Commit 9b49ab3

Browse files
committed
updated for version 7.4.041
Problem: Visual selection does not remain after being copied over. (Axel Bender) Solution: Move when VIsual_active is reset. (Christian Brabandt)
1 parent 8c46de8 commit 9b49ab3

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/ops.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3808,9 +3808,6 @@ do_put(regname, dir, count, flags)
38083808
FALSE /* stop after 1 paste */
38093809
#endif
38103810
);
3811-
#ifdef FEAT_VISUAL
3812-
VIsual_active = FALSE;
3813-
#endif
38143811

38153812
curbuf->b_op_end = curwin->w_cursor;
38163813
/* For "CTRL-O p" in Insert mode, put cursor after last char */
@@ -3972,6 +3969,10 @@ do_put(regname, dir, count, flags)
39723969
if (regname == '=')
39733970
vim_free(y_array);
39743971

3972+
#ifdef FEAT_VISUAL
3973+
VIsual_active = FALSE;
3974+
#endif
3975+
39753976
/* If the cursor is past the end of the line put it at the end. */
39763977
adjust_cursor_eol();
39773978
}

src/version.c

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

739739
static int included_patches[] =
740740
{ /* Add new patch number below this line */
741+
/**/
742+
41,
741743
/**/
742744
40,
743745
/**/

0 commit comments

Comments
 (0)