From f577bb024e511f281c27ff90a041a44acc63ed73 Mon Sep 17 00:00:00 2001 From: phanium <91544758+phanen@users.noreply.github.com> Date: Thu, 5 Jun 2025 00:26:56 +0800 Subject: docs: getreg() type #34215 ```lua ---@type string local _a = vim.fn.getreg('a', 1) ---@type string[] local _b = vim.fn.getreg('a', 1, 1) ``` --- runtime/doc/vimfn.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'runtime/doc') diff --git a/runtime/doc/vimfn.txt b/runtime/doc/vimfn.txt index 031e7c4cc0..d64779af8c 100644 --- a/runtime/doc/vimfn.txt +++ b/runtime/doc/vimfn.txt @@ -4089,6 +4089,7 @@ getreg([{regname} [, 1 [, {list}]]]) *getreg()* Parameters: ~ • {regname} (`string?`) + • {expr} (`any?`) • {list} (`nil|false?`) Return: ~ -- cgit