mirror of
https://github.com/neovim/neovim.git
synced 2025-12-09 16:12:48 +00:00
eval/shada: Add testing for unnamed register with setreg and startup
This commit is contained in:
@@ -516,6 +516,15 @@ describe('eval', function()
|
||||
eq({'item'}, eval("y"))
|
||||
end)
|
||||
|
||||
it('sets the unnamed register when the "u" option is passed to setreg', function()
|
||||
execute("call setreg('a','a reg', 'cu')")
|
||||
eq("a reg", eval('@"'))
|
||||
execute("call setreg('b','b reg', 'cu')")
|
||||
eq("b reg", eval('@"'))
|
||||
execute("call setreg('c','c reg', 'c')")
|
||||
eq("b reg", eval('@"'))
|
||||
end)
|
||||
|
||||
it('search and expressions', function()
|
||||
command('so test_eval_setup.vim')
|
||||
command([=[call SetReg('/', ['abc/'])]=])
|
||||
|
||||
Reference in New Issue
Block a user