diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-06-13 00:46:43 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-06-18 18:01:43 -0400 |
commit | e681a317fef46236f051be4adcc76ffd53ffcb40 (patch) | |
tree | fea0dd9267afe0088d4a4c33c479f66ac395cd97 | |
parent | 833a5d16a21aac58367c2cedbc7a34f321183e76 (diff) | |
download | rneovim-e681a317fef46236f051be4adcc76ffd53ffcb40.tar.gz rneovim-e681a317fef46236f051be4adcc76ffd53ffcb40.tar.bz2 rneovim-e681a317fef46236f051be4adcc76ffd53ffcb40.zip |
vim-patch:8.2.0964: TextYankPost does not provide info about Visual selection
Problem: TextYankPost does not provide info about Visual selection.
Solution: Add the 'visual' key in v:event. (closes vim/vim#6249)
https://github.com/vim/vim/commit/37d1673ce007c46ec2338f3236ae1b7b0324bd25
-rw-r--r-- | src/nvim/testdir/test_autocmd.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_autocmd.vim b/src/nvim/testdir/test_autocmd.vim index 5217aa7339..d116246ef3 100644 --- a/src/nvim/testdir/test_autocmd.vim +++ b/src/nvim/testdir/test_autocmd.vim @@ -1252,6 +1252,10 @@ func Test_TextYankPost() call assert_equal( \{'regcontents': ['foo'], 'inclusive': v:false, 'regname': '', 'operator': 'y', 'visual': v:false, 'regtype': 'V'}, \g:event) + norm Vy + call assert_equal( + \{'regcontents': ['foo'], 'inclusive': v:true, 'regname': '', 'operator': 'y', 'visual': v:true, 'regtype': 'V'}, + \g:event) call feedkeys("\<C-V>y", 'x') call assert_equal( \{'regcontents': ['f'], 'inclusive': v:true, 'regname': '', 'operator': 'y', 'visual': v:true, 'regtype': "\x161"}, |