comparison runtime/doc/eval.txt @ 11263:ae5f9f26f81c v8.0.0517

patch 8.0.0517: there is no way to remove quickfix lists commit https://github.com/vim/vim/commit/b6fa30ccc39cdb7f1d07b99fe2f4c6b61671dac2 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Mar 29 14:19:25 2017 +0200 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)
author Christian Brabandt <cb@256bit.org>
date Wed, 29 Mar 2017 14:30:06 +0200
parents 214f228718cf
children 327a04a762f6
comparison
equal deleted inserted replaced
11262:214f228718cf 11263:ae5f9f26f81c
6934 If you supply an empty {list}, the quickfix list will be 6934 If you supply an empty {list}, the quickfix list will be
6935 cleared. 6935 cleared.
6936 Note that the list is not exactly the same as what 6936 Note that the list is not exactly the same as what
6937 |getqflist()| returns. 6937 |getqflist()| returns.
6938 6938
6939 *E927* 6939 {action} values: *E927*
6940 If {action} is set to 'a', then the items from {list} are 6940 'a' The items from {list} are added to the existing
6941 added to the existing quickfix list. If there is no existing 6941 quickfix list. If there is no existing list, then a
6942 list, then a new list is created. 6942 new list is created.
6943 6943
6944 If {action} is set to 'r', then the items from the current 6944 'r' The items from the current quickfix list are replaced
6945 quickfix list are replaced with the items from {list}. This 6945 with the items from {list}. This can also be used to
6946 can also be used to clear the list: > 6946 clear the list: >
6947 :call setqflist([], 'r') 6947 :call setqflist([], 'r')
6948 < 6948 <
6949 'f' All the quickfix lists in the quickfix stack are
6950 freed.
6951
6949 If {action} is not present or is set to ' ', then a new list 6952 If {action} is not present or is set to ' ', then a new list
6950 is created. 6953 is created.
6951 6954
6952 If the optional {what} dictionary argument is supplied, then 6955 If the optional {what} dictionary argument is supplied, then
6953 only the items listed in {what} are set. The first {list} 6956 only the items listed in {what} are set. The first {list}