1
0
forked from aniani/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)
This commit is contained in:
Bram Moolenaar
2017-03-29 14:19:25 +02:00
parent e0720cbf63
commit b6fa30ccc3
5 changed files with 85 additions and 22 deletions

View File

@@ -10038,7 +10038,8 @@ set_qf_ll_list(
act = get_tv_string_chk(action_arg);
if (act == NULL)
return; /* type error; errmsg already given */
if ((*act == 'a' || *act == 'r' || *act == ' ') && act[1] == NUL)
if ((*act == 'a' || *act == 'r' || *act == ' ' || *act == 'f') &&
act[1] == NUL)
action = *act;
else
EMSG2(_(e_invact), act);