aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
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 /src/nvim/eval.c
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 'src/nvim/eval.c')
-rw-r--r--src/nvim/eval.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index 7fa9f7563e..1461ddb8f9 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -14594,7 +14594,8 @@ static void set_qf_ll_list(win_T *wp, typval_T *args, typval_T *rettv)
return;
}
const char *const act = tv_get_string_chk(action_arg);
- 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);