From: Mao-Yining <101858210+mao-yining@users.noreply.github.com> Date: Sat, 17 Jan 2026 10:03:52 +0000 (+0000) Subject: runtime(doc): fix return type in getqflist() and getloclist() X-Git-Tag: v9.1.2090~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=745335c876b6e7a164f4e3443f90e67908004e49;p=thirdparty%2Fvim.git runtime(doc): fix return type in getqflist() and getloclist() Problem: `call getqflist({})` will return `{}`, which is type dict 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 --- diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt index c3364d4fb7..c940ee50c8 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> or list + Return type: list> or dict 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> or list + Return type: list> or dict getreg([{regname} [, 1 [, {list}]]]) *getreg()*