mirror of
https://github.com/neovim/neovim.git
synced 2025-09-20 02:08:17 +00:00
vim-patch:7.4.929
Problem: "gv" after paste selects one character less if 'selection' is
"exclusive".
Solution: Increment the end position. (Christian Brabandt)
d29c6fea94
This commit is contained in:
@@ -7745,6 +7745,10 @@ static void nv_put(cmdarg_T *cap)
|
||||
if (was_visual) {
|
||||
curbuf->b_visual.vi_start = curbuf->b_op_start;
|
||||
curbuf->b_visual.vi_end = curbuf->b_op_end;
|
||||
// need to adjust cursor position
|
||||
if (*p_sel == 'e') {
|
||||
inc(&curbuf->b_visual.vi_end);
|
||||
}
|
||||
}
|
||||
|
||||
/* When all lines were selected and deleted do_put() leaves an empty
|
||||
|
Reference in New Issue
Block a user