diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-08-11 20:25:26 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-08-11 20:25:26 +0200 |
commit | ae338338508ef42866204f90dca861ac555f4298 (patch) | |
tree | 149ce5eb4d1f3062c49a4a7344830d7f67aa1515 /runtime | |
parent | cf8d840ce9140931bfbdc97961dad9278ee5f96c (diff) | |
download | vim-ae338338508ef42866204f90dca861ac555f4298.zip |
patch 8.0.0904: cannot set a location list from text
Problem: Cannot set a location list from text.
Solution: Add the "text" argument to setqflist(). (Yegappan Lakshmanan)
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/eval.txt | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 0289b9fcb..2705f2a5b 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -6973,10 +6973,12 @@ setpos({expr}, {list}) |winrestview()|. setqflist({list} [, {action}[, {what}]]) *setqflist()* - Create or replace or add to the quickfix list using the items - in {list}. Each item in {list} is a dictionary. - Non-dictionary items in {list} are ignored. Each dictionary - item can contain the following entries: + Create or replace or add to the quickfix list. + + When {what} is not present, use the items in {list}. Each + item must be a dictionary. Non-dictionary items in {list} are + ignored. Each dictionary item can contain the following + entries: bufnr buffer number; must be the number of a valid buffer @@ -7028,6 +7030,10 @@ setqflist({list} [, {action}[, {what}]]) *setqflist()* argument is ignored. The following items can be specified in {what}: context any Vim type can be stored as a context + text use 'errorformat' to extract items from the + text and add the resulting entries to the + quickfix list {nr}. The value can be a string + with one line or a list with multiple lines. items list of quickfix entries. Same as the {list} argument. nr list number in the quickfix stack; zero |