aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2015-03-18 22:38:19 +0100
committerBjörn Linse <bjorn.linse@gmail.com>2015-04-05 11:34:13 +0200
commit5600b80c1fcdf9d056bb7a0b5a74e5563dcb991f (patch)
tree354d2a30a3301b499fa8e67e2682d39c6be2e095 /test
parent638ceea092f01675e964a5e5a6adc6af8f28f423 (diff)
downloadrneovim-5600b80c1fcdf9d056bb7a0b5a74e5563dcb991f.tar.gz
rneovim-5600b80c1fcdf9d056bb7a0b5a74e5563dcb991f.tar.bz2
rneovim-5600b80c1fcdf9d056bb7a0b5a74e5563dcb991f.zip
clipboard: show "* and "+ in :registers
Helped-by: Robin Allen <r@foon.uk> Helped-by: Scott Prager <splinterofchaos@gmail.com>
Diffstat (limited to 'test')
-rw-r--r--test/functional/clipboard/clipboard_provider_spec.lua24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/functional/clipboard/clipboard_provider_spec.lua b/test/functional/clipboard/clipboard_provider_spec.lua
index c5577327f9..c1c56c94c1 100644
--- a/test/functional/clipboard/clipboard_provider_spec.lua
+++ b/test/functional/clipboard/clipboard_provider_spec.lua
@@ -1,6 +1,7 @@
-- Test clipboard provider support
local helpers = require('test.functional.helpers')
+local Screen = require('test.functional.ui.screen')
local clear, feed, insert = helpers.clear, helpers.feed, helpers.insert
local execute, expect, eq, eval = helpers.execute, helpers.expect, helpers.eq, helpers.eval
local nvim, run, stop, restart = helpers.nvim, helpers.run, helpers.stop, helpers.restart
@@ -159,4 +160,27 @@ describe('clipboard usage', function()
linewise stuff]])
end)
+ it('supports "+ and "* in registers', function()
+ local screen = Screen.new(60, 10)
+ screen:attach()
+ execute("let g:test_clip['*'] = ['some', 'star data','']")
+ execute("let g:test_clip['+'] = ['such', 'plus', 'stuff']")
+ execute("registers")
+ screen:expect([[
+ ~ |
+ ~ |
+ ~ |
+ ~ |
+ :registers |
+ {1:--- Registers ---} |
+ "* some{2:^J}star data{2:^J} |
+ "+ such{2:^J}plus{2:^J}stuff |
+ ": let g:test_clip['+'] = ['such', 'plus', 'stuff'] |
+ {3:Press ENTER or type command to continue}^ |
+ ]], {
+ [1] = {bold = true, foreground = Screen.colors.Fuchsia},
+ [2] = {foreground = Screen.colors.Blue},
+ [3] = {bold = true, foreground = Screen.colors.SeaGreen}},
+ {{bold = true, foreground = Screen.colors.Blue}})
+ end)
end)