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:
watiko
2016-02-07 13:14:43 +09:00
parent 663e1ed158
commit 51c3e0aa80
3 changed files with 29 additions and 1 deletions

View File

@@ -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