diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2017-10-15 18:32:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-15 18:32:43 +0200 |
commit | 3e502fd7d67f01f8f8e3006da255d3fba40ee961 (patch) | |
tree | 0610ee342d0c5eacd48eef3957fcd5e965d38438 /test | |
parent | 2ecff0814e6f084a1654ced5f954b4900189e00a (diff) | |
parent | 4b3e51d4ee3018cf59d81578e2320b79fb614652 (diff) | |
download | rneovim-3e502fd7d67f01f8f8e3006da255d3fba40ee961.tar.gz rneovim-3e502fd7d67f01f8f8e3006da255d3fba40ee961.tar.bz2 rneovim-3e502fd7d67f01f8f8e3006da255d3fba40ee961.zip |
Merge pull request #7373 from bfredl/cmdwin_clip
save and restore clipboard batch status when entering cmdline window
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/clipboard/clipboard_provider_spec.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/functional/clipboard/clipboard_provider_spec.lua b/test/functional/clipboard/clipboard_provider_spec.lua index f66fbf7c94..b90335e70a 100644 --- a/test/functional/clipboard/clipboard_provider_spec.lua +++ b/test/functional/clipboard/clipboard_provider_spec.lua @@ -392,6 +392,13 @@ describe('clipboard', function() eq('---', eval('getreg("*")')) end) + it('works in the cmdline window', function() + feed('q:itext<esc>yy') + eq({{'text', ''}, 'V'}, eval("g:test_clip['*']")) + command("let g:test_clip['*'] = [['star'], 'c']") + feed('p') + eq('textstar', meths.get_current_line()) + end) end) describe('clipboard=unnamedplus', function() |