commit 7ad2e3c64562bfb0ea2f7be305e4b0e6d2474d64
parent 1a7c38caec487976f7f022dd355e3c0d65925d0c
Author: Maria José Solano <majosolano99@gmail.com>
Date: Tue, 27 Feb 2024 03:53:49 -0800
docs: fix type of setreg() argument {options} (#27631)
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/runtime/lua/vim/_meta/vimfn.lua b/runtime/lua/vim/_meta/vimfn.lua
@@ -8172,7 +8172,7 @@ function vim.fn.setqflist(list, action, what) end
---
--- @param regname string
--- @param value any
---- @param options? table
+--- @param options? string
--- @return any
function vim.fn.setreg(regname, value, options) end
diff --git a/src/nvim/eval.lua b/src/nvim/eval.lua
@@ -9756,7 +9756,7 @@ M.funcs = {
]=],
name = 'setreg',
- params = { { 'regname', 'string' }, { 'value', 'any' }, { 'options', 'table' } },
+ params = { { 'regname', 'string' }, { 'value', 'any' }, { 'options', 'string' } },
signature = 'setreg({regname}, {value} [, {options}])',
},
settabvar = {