mirror of
https://github.com/neovim/neovim.git
synced 2026-01-25 22:51:14 +10: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:
@@ -294,7 +294,6 @@ func Test_setreg_basic()
|
||||
call assert_fails('call setreg(1)', 'E119:')
|
||||
call assert_fails('call setreg(1, 2, 3, 4)', 'E118:')
|
||||
call assert_fails('call setreg([], 2)', 'E730:')
|
||||
call assert_fails('call setreg(1, {})', 'E731:')
|
||||
call assert_fails('call setreg(1, 2, [])', 'E730:')
|
||||
call assert_fails('call setreg("/", ["1", "2"])', 'E883:')
|
||||
call assert_fails('call setreg("=", ["1", "2"])', 'E883:')
|
||||
|
||||
Reference in New Issue
Block a user