diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2017-10-10 18:42:01 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2017-10-15 16:36:00 +0200 |
commit | 4b3e51d4ee3018cf59d81578e2320b79fb614652 (patch) | |
tree | 3d1aef8c23004b58bb89964222cb66b601ba381d /test | |
parent | 68f3da5f619d2151c8dd88d6758c5c86015cdab1 (diff) | |
download | rneovim-4b3e51d4ee3018cf59d81578e2320b79fb614652.tar.gz rneovim-4b3e51d4ee3018cf59d81578e2320b79fb614652.tar.bz2 rneovim-4b3e51d4ee3018cf59d81578e2320b79fb614652.zip |
ops: 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() |