comparison src/quickfix.c @ 21100:acfda84f5661 v8.2.1101

patch 8.2.1101: no error when using wrong arguments for setqflist() Commit: https://github.com/vim/vim/commit/be7a50c22f63478a6e64fe6b932a847830191b95 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jun 30 22:11:44 2020 +0200 patch 8.2.1101: no error when using wrong arguments for setqflist() Problem: No error when using wrong arguments for setqflist() or setloclist(). Solution: Check for the error.
author Bram Moolenaar <Bram@vim.org>
date Tue, 30 Jun 2020 22:15:05 +0200
parents 3af71cbcfdbe
children ebacf460b1b3
comparison
equal deleted inserted replaced
21099:ba80d400b9ab 21100:acfda84f5661
7398 // Free the entire quickfix or location list stack 7398 // Free the entire quickfix or location list stack
7399 qf_free_stack(wp, qi); 7399 qf_free_stack(wp, qi);
7400 return OK; 7400 return OK;
7401 } 7401 }
7402 7402
7403 // A dict argument cannot be specified with a non-empty list argument
7404 if (list != NULL && list->lv_len != 0 && what != NULL)
7405 {
7406 semsg(_(e_invarg2),
7407 _("cannot have both a list and a \"what\" argument"));
7408 return FAIL;
7409 }
7410
7403 incr_quickfix_busy(); 7411 incr_quickfix_busy();
7404 7412
7405 if (what != NULL) 7413 if (what != NULL)
7406 retval = qf_set_properties(qi, what, action, title); 7414 retval = qf_set_properties(qi, what, action, title);
7407 else 7415 else