Hi,

On Thu, Mar 5, 2020 at 3:42 PM David Briscoe <[email protected]>
wrote:

> If you close and then reopen the quickfix window
>
> Looks like you don't even need to close the quickfix. Looks like :copen
> fixes it regardless!
> ------------------------------
>
> Thanks for clearing up setqflist. Does that mean that if I want to pass
> {what}, I should always pass an empty list for {list}?
>

If you want to create or add items to a quickfix list, then you can pass
the items
either through the {list} argument or using the 'items' key in {what}. The
{list}
argument is kept for backward compatibility reasons. When setqflist() was
introduced, it supported only the {list} argument. The {what} argument to
modify the various quickfix attributes was added later.

If you supply the {what} argument, then the {list} argument will be ignored.

Maybe that's implied by this line from :help setqflist:
>
> When {what} is not present, use the items in {list}.
>
> Although it wasn't clear to me that this line no longer applies:
>
> If you supply an empty {list}, the quickfix list will be cleared.
>
>
> This applies only when the {what} argument is not supplied.

Regards,
Yegappan

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/CAAW7x7ntafJaU8LTHLaGNJ5ejOVDvd1_EK%3DApr7Avxm%3DR5r_Xw%40mail.gmail.com.

Raspunde prin e-mail lui