The documentation (as of b3ea36c) of getqflist() and getloclist() states for its {what} parameter
If the optional {what} dictionary argument is supplied, then
returns only the items listed in {what} as a dictionary. The
following string items are supported in {what}:
[...]
Non-string items in {what} are ignored. To get the value of a
particular item, set it to zero.
That is it should be used like
echo getqflist({'title' : 0})
echo getloclist(0, {'title' : 0})
However, many example snippets in quickfix.txt (e.g. quickfix-title, quickfix-size, ...) use it like
echo getqflist({'title' : 1}) " with a 1
echo getloclist(0, {'title' : 1}) " with a 1
With the connotation of 1 being true/included and 0 being false/excluded, it is unclear what the correct usage is and what use cases are considered legal and which are undefined-behaviour.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.![]()
The documentation (as of b3ea36c) of getqflist() and getloclist() states for its {what} parameter
If the optional {what} dictionary argument is supplied, then returns only the items listed in {what} as a dictionary. The following string items are supported in {what}: [...] Non-string items in {what} are ignored. To get the value of a particular item, set it to zero.That is it should be used like
echo getqflist({'title' : 0}) echo getloclist(0, {'title' : 0})However, many example snippets in quickfix.txt (e.g. quickfix-title, quickfix-size, ...) use it like
echo getqflist({'title' : 1}) " with a 1 echo getloclist(0, {'title' : 1}) " with a 1With the connotation of 1 being true/included and 0 being false/excluded, it is unclear what the correct usage is and what use cases are considered legal and which are undefined-behaviour.
I am closing this, unless somebody wants to suggest a documentation change, in which case please create a new issue or PR with specific changes. Thanks.
—
You are receiving this because you commented.