aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/eval.txt
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2017-12-18 14:26:49 -0500
committerJames McCoy <jamessan@jamessan.com>2017-12-18 14:35:55 -0500
commitfb8592b7ba673f230f144dc8c29e5dffc33fc50a (patch)
treec166a68801d1362a30fe3fa43d6ab9e76ec91d3f /runtime/doc/eval.txt
parent6b5d92f9e0e9754933abec06e9265027f388357f (diff)
downloadrneovim-fb8592b7ba673f230f144dc8c29e5dffc33fc50a.tar.gz
rneovim-fb8592b7ba673f230f144dc8c29e5dffc33fc50a.tar.bz2
rneovim-fb8592b7ba673f230f144dc8c29e5dffc33fc50a.zip
vim-patch:8.0.0517: there is no way to remove quickfix lists
Problem: There is no way to remove quickfix lists (for testing). Solution: Add the 'f' action to setqflist(). Add tests. (Yegappan Lakshmanan) https://github.com/vim/vim/commit/b6fa30ccc39cdb7f1d07b99fe2f4c6b61671dac2
Diffstat (limited to 'runtime/doc/eval.txt')
-rw-r--r--runtime/doc/eval.txt19
1 files changed, 11 insertions, 8 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index e337c5d6d5..efc8775d0a 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -6855,16 +6855,19 @@ setqflist({list} [, {action}[, {what}]]) *setqflist()*
Note that the list is not exactly the same as what
|getqflist()| returns.
- *E927*
- If {action} is set to 'a', then the items from {list} are
- added to the existing quickfix list. If there is no existing
- list, then a new list is created.
+ {action} values: *E927*
+ 'a' The items from {list} are added to the existing
+ quickfix list. If there is no existing list, then a
+ new list is created.
- If {action} is set to 'r', then the items from the current
- quickfix list are replaced with the items from {list}. This
- can also be used to clear the list: >
- :call setqflist([], 'r')
+ 'r' The items from the current quickfix list are replaced
+ with the items from {list}. This can also be used to
+ clear the list: >
+ :call setqflist([], 'r')
<
+ 'f' All the quickfix lists in the quickfix stack are
+ freed.
+
If {action} is not present or is set to ' ', then a new list
is created.