From f9779facca2cb9c8115aa1cbdd2fb71d105b8ebf Mon Sep 17 00:00:00 2001 From: Sean Dewar Date: Tue, 18 May 2021 22:53:53 +0100 Subject: 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) https://github.com/vim/vim/commit/bb861e293e0170455184079fa537278754b07911 Cherry-pick eval.txt changes for getreginfo() from: https://github.com/vim/vim/commit/6aa57295cfbe8f21c15f0671e45fd53cf990d404 https://github.com/vim/vim/commit/207f009326c8f878defde0e594d7d9ed9860106e --- src/nvim/eval.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'src/nvim/eval.lua') diff --git a/src/nvim/eval.lua b/src/nvim/eval.lua index c0a18b3236..762d741fb7 100644 --- a/src/nvim/eval.lua +++ b/src/nvim/eval.lua @@ -166,6 +166,7 @@ return { getpos={args=1}, getqflist={args={0, 1}}, getreg={args={0, 3}}, + getreginfo={args={0, 1}, base=1}, getregtype={args={0, 1}}, gettabinfo={args={0, 1}}, gettabvar={args={2, 3}}, -- cgit