Mercurial > vim
diff runtime/doc/eval.txt @ 12465:805f7fd40e0d v8.0.1112
patch 8.0.1112: can't get size or current index from quickfix list
commit https://github.com/vim/vim/commit/fc2b270cfd36230166df486aae4d96d9d1f32755
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Sep 15 22:43:07 2017 +0200
patch 8.0.1112: can't get size or current index from quickfix list
Problem: Can't get size or current index from quickfix list.
Solution: Add "idx" and "size" options. (Yegappan Lakshmanan)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 15 Sep 2017 22:45:04 +0200 |
parents | fc3e2d5614dd |
children | d91cf2e26ef0 |
line wrap: on
line diff
--- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -4642,6 +4642,7 @@ getqflist([{what}]) *getqflist()* id get information for the quickfix list with |quickfix-ID|; zero means the id for the current list or the list specifed by "nr" + idx index of the current entry in the list items quickfix list entries lines use 'errorformat' to extract items from a list of lines and return the resulting entries. @@ -4650,6 +4651,7 @@ getqflist([{what}]) *getqflist()* nr get information for this quickfix list; zero means the current quickfix list and "$" means the last quickfix list + size number of entries in the quickfix list title get the list title winid get the |window-ID| (if opened) all all of the above quickfix properties @@ -4669,8 +4671,10 @@ getqflist([{what}]) *getqflist()* The returned dictionary contains the following entries: context context information stored with |setqflist()| id quickfix list ID |quickfix-ID| + idx index of the current entry in the list items quickfix list entries nr quickfix list number + size number of entries in the quickfix list title quickfix list title text winid quickfix |window-ID| (if opened)