diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-08-27 15:23:41 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-08-27 15:23:41 +0200 |
commit | 7adf06f4e25c795ba32ff0b2e8591330f6a41afb (patch) | |
tree | d5c6228247803f2b904b0641042bfb06c4e767cf /runtime | |
parent | 4ab7968aa9d8a624cd56f55b5cad2bedb240eb73 (diff) | |
download | vim-7adf06f4e25c795ba32ff0b2e8591330f6a41afb.zip |
patch 8.0.1006: quickfix list changes when parsing text with 'erroformat'
Problem: Cannot parse text with 'erroformat' without changing a quickfix
list.
Solution: Add the "text" argument to getqflist(). (Yegappan Lakshmanan)
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/eval.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 37e849c90..a1a76f914 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -4616,6 +4616,11 @@ getqflist([{what}]) *getqflist()* nr get information for this quickfix list; zero means the current quickfix list and '$' means the last quickfix list + text use 'errorformat' to extract items from the + text and return the resulting entries. The + value can be a string with one line or a list + with multiple lines. The current quickfix list + is not modified. title get the list title winid get the |window-ID| (if opened) all all of the above quickfix properties @@ -4624,6 +4629,9 @@ getqflist([{what}]) *getqflist()* To get the number of lists in the quickfix stack, set 'nr' to '$' in {what}. The 'nr' value in the returned dictionary contains the quickfix stack size. + When 'text' is specified, all the other items are ignored. The + returned dictionary contains the entry 'items' with the list + of entries. In case of error processing {what}, an empty dictionary is returned. |