runtime(doc): fix return type in getqflist() and getloclist()
Commit:
https://github.com/vim/vim/commit/745335c876b6e7a164f4e3443f90e67908004e49
Author: Mao-Yining <
101858210+...@users.noreply.github.com>
Date: Sat Jan 17 10:03:52 2026 +0000
runtime(doc): fix return type in getqflist() and getloclist()
Problem: `call getqflist({})` will return `{}`, which is type dict<any>
Solution: fix it in the document.
closes: #19197
Signed-off-by: Mao-Yining <
101858210+...@users.noreply.github.com>
Signed-off-by: Christian Brabandt <
c...@256bit.org>
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt
index c3364d4fb..c940ee50c 100644
--- a/runtime/doc/builtin.txt
+++ b/runtime/doc/builtin.txt
@@ -1,4 +1,4 @@
-*builtin.txt* For Vim version 9.1. Last change: 2026 Jan 03
+*builtin.txt* For Vim version 9.1. Last change: 2026 Jan 17
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -4727,7 +4727,7 @@ getloclist({nr} [, {what}]) *getloclist()*
:echo getloclist(3, {'all': 0})
:echo getloclist(5, {'filewinid': 0})
<
- Return type: list<dict<any>> or list<any>
+ Return type: list<dict<any>> or dict<any>
getmarklist([{buf}]) *getmarklist()*
@@ -5008,7 +5008,7 @@ getqflist([{what}]) *getqflist()*
:echo getqflist({'nr': 2, 'title': 1})
:echo getqflist({'lines' : ["F1:10:L10"]})
<
- Return type: list<dict<any>> or list<any>
+ Return type: list<dict<any>> or dict<any>
getreg([{regname} [, 1 [, {list}]]]) *getreg()*