mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
vim-patch:8.2.0924: cannot save and restore a register properly
Problem: Cannot save and restore a register properly.
Solution: Add getreginfo() and make setreg() accept a dictionary. (Andy
Massimino, closes vim/vim#3370)
bb861e293e
Cherry-pick eval.txt changes for getreginfo() from:
6aa57295cf
207f009326
This commit is contained in:
@@ -600,7 +600,6 @@ describe('eval', function()
|
||||
command([[call ErrExe('call setreg(1)')]])
|
||||
command([[call ErrExe('call setreg(1, 2, 3, 4)')]])
|
||||
command([=[call ErrExe('call setreg([], 2)')]=])
|
||||
command([[call ErrExe('call setreg(1, {})')]])
|
||||
command([=[call ErrExe('call setreg(1, 2, [])')]=])
|
||||
command([=[call ErrExe('call setreg("/", ["1", "2"])')]=])
|
||||
command([=[call ErrExe('call setreg("=", ["1", "2"])')]=])
|
||||
@@ -615,8 +614,6 @@ describe('eval', function()
|
||||
Vim(call):E118: Too many arguments for function: setreg
|
||||
Executing call setreg([], 2)
|
||||
Vim(call):E730: using List as a String
|
||||
Executing call setreg(1, {})
|
||||
Vim(call):E731: using Dictionary as a String
|
||||
Executing call setreg(1, 2, [])
|
||||
Vim(call):E730: using List as a String
|
||||
Executing call setreg("/", ["1", "2"])
|
||||
|
||||
Reference in New Issue
Block a user