mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
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)
This commit is contained in:
@@ -3808,9 +3808,6 @@ do_put(regname, dir, count, flags)
|
|||||||
FALSE /* stop after 1 paste */
|
FALSE /* stop after 1 paste */
|
||||||
#endif
|
#endif
|
||||||
);
|
);
|
||||||
#ifdef FEAT_VISUAL
|
|
||||||
VIsual_active = FALSE;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
curbuf->b_op_end = curwin->w_cursor;
|
curbuf->b_op_end = curwin->w_cursor;
|
||||||
/* For "CTRL-O p" in Insert mode, put cursor after last char */
|
/* For "CTRL-O p" in Insert mode, put cursor after last char */
|
||||||
@@ -3972,6 +3969,10 @@ end:
|
|||||||
if (regname == '=')
|
if (regname == '=')
|
||||||
vim_free(y_array);
|
vim_free(y_array);
|
||||||
|
|
||||||
|
#ifdef FEAT_VISUAL
|
||||||
|
VIsual_active = FALSE;
|
||||||
|
#endif
|
||||||
|
|
||||||
/* If the cursor is past the end of the line put it at the end. */
|
/* If the cursor is past the end of the line put it at the end. */
|
||||||
adjust_cursor_eol();
|
adjust_cursor_eol();
|
||||||
}
|
}
|
||||||
|
@@ -738,6 +738,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 */
|
||||||
|
/**/
|
||||||
|
41,
|
||||||
/**/
|
/**/
|
||||||
40,
|
40,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user