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 /test | |
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 'test')
-rw-r--r-- | test/functional/legacy/094_visual_mode_operators_spec.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/functional/legacy/094_visual_mode_operators_spec.lua b/test/functional/legacy/094_visual_mode_operators_spec.lua index 32ce713a02..4dce39b8d2 100644 --- a/test/functional/legacy/094_visual_mode_operators_spec.lua +++ b/test/functional/legacy/094_visual_mode_operators_spec.lua @@ -371,4 +371,28 @@ describe('Visual mode and operator', function() ]]) end) end) + + it('gv in exclusive select mode after operation', function() + source([[ + $put ='zzz ' + $put ='äà ' + set selection=exclusive]]) + feed('kv3lyjv3lpgvcxxx<Esc>') + + expect([[ + + zzz + xxx ]]) + end) + + it('gv in exclusive select mode without operation', function() + source([[ + $put ='zzz ' + set selection=exclusive]]) + feed('0v3l<Esc>gvcxxx<Esc>') + + expect([[ + + xxx ]]) + end) end) |