diff options
| author | Björn Linse <bjorn.linse@gmail.com> | 2016-07-13 10:11:30 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-07-13 10:11:30 +0200 |
| commit | be531aba777a28c476c4632c094ab65a7f14e8bc (patch) | |
| tree | 22ef3f81a9ab4d2fb3dc50975defae1dadaba40c /test/functional/clipboard/clipboard_provider_spec.lua | |
| parent | 5ea4d58a1b1d3d0cafe5da5ebe4dd64908a2a73c (diff) | |
| parent | 6ea2bde065016d4cb2600aa2252daa83f66f09c4 (diff) | |
| download | rneovim-be531aba777a28c476c4632c094ab65a7f14e8bc.tar.gz rneovim-be531aba777a28c476c4632c094ab65a7f14e8bc.tar.bz2 rneovim-be531aba777a28c476c4632c094ab65a7f14e8bc.zip | |
Merge pull request #5042 from bfredl/unnamedunnamedplus
clipboard: make v:register=='+' when clipboard=unnamed,unnamedplus
Diffstat (limited to 'test/functional/clipboard/clipboard_provider_spec.lua')
| -rw-r--r-- | test/functional/clipboard/clipboard_provider_spec.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/functional/clipboard/clipboard_provider_spec.lua b/test/functional/clipboard/clipboard_provider_spec.lua index b4febe4bfb..15977b9777 100644 --- a/test/functional/clipboard/clipboard_provider_spec.lua +++ b/test/functional/clipboard/clipboard_provider_spec.lua @@ -308,6 +308,7 @@ describe('clipboard usage', function() end) it('links the "+ and unnamed registers', function() + eq('+', eval('v:register')) insert("one two") feed('^"+dwdw"+P') expect('two') @@ -335,6 +336,7 @@ describe('clipboard usage', function() eq({{'really unnamed', ''}, 'V'}, eval("g:test_clip['*']")) -- unnamedplus takes predecence when pasting + eq('+', eval('v:register')) execute("let g:test_clip['+'] = ['the plus','']") execute("let g:test_clip['*'] = ['the star','']") feed("p") |
