]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(doc): fix return type in getqflist() and getloclist()
authorMao-Yining <101858210+mao-yining@users.noreply.github.com>
Sat, 17 Jan 2026 10:03:52 +0000 (10:03 +0000)
committerChristian Brabandt <cb@256bit.org>
Sat, 17 Jan 2026 10:03:52 +0000 (10:03 +0000)
Problem: `call getqflist({})` will return `{}`, which is type dict<any>
Solution: fix it in the document.

closes: #19197

Signed-off-by: Mao-Yining <101858210+mao-yining@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/builtin.txt

index c3364d4fb7dbd19399ac2a05371df18cec7d6058..c940ee50c83d3aee02c822b7e8b87e3989ed5594 100644 (file)
@@ -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()*