diff options
author | watiko <service@mail.watiko.net> | 2016-02-07 13:14:43 +0900 |
---|---|---|
committer | watiko <service@mail.watiko.net> | 2016-02-11 15:13:30 +0900 |
commit | 51c3e0aa806820ab24ee481ffc1f67cbef444206 (patch) | |
tree | 2fd5904653c954caeaa840b9b13f90c11cb21b62 /src | |
parent | 663e1ed158956a75845642974ab81bba1826ff05 (diff) | |
download | rneovim-51c3e0aa806820ab24ee481ffc1f67cbef444206.tar.gz rneovim-51c3e0aa806820ab24ee481ffc1f67cbef444206.tar.bz2 rneovim-51c3e0aa806820ab24ee481ffc1f67cbef444206.zip |
vim-patch:7.4.929
Problem: "gv" after paste selects one character less if 'selection' is
"exclusive".
Solution: Increment the end position. (Christian Brabandt)
https://github.com/vim/vim/commit/d29c6fea94947b3f4b54fbd5a6f832a7d744bf27
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/normal.c | 4 | ||||
-rw-r--r-- | src/nvim/version.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/nvim/normal.c b/src/nvim/normal.c index 233be6d32d..e6c5354941 100644 --- a/src/nvim/normal.c +++ b/src/nvim/normal.c @@ -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 diff --git a/src/nvim/version.c b/src/nvim/version.c index 4ecfd634a2..bd85b10dd1 100644 --- a/src/nvim/version.c +++ b/src/nvim/version.c @@ -359,7 +359,7 @@ static int included_patches[] = { // 932, // 931, // 930 NA - // 929, + 929, // 928 NA // 927 NA // 926, |