Hi,

On Wed, Mar 23, 2022 at 7:12 AM Yegappan Lakshmanan <[email protected]> wrote:
>
> On Wed, Mar 23, 2022 at 3:51 AM dundargoc <[email protected]> wrote:
>>
>> @yegappan I've stared at the quickfix code for 10 minutes and I don't get 
>> it. qi doesn't seem to be used in the function (except for comparisons), how 
>> can it change? Mind giving me a quick hint?
>>
>>
>
> The quickfix list can be changed from an autocmd. For example, the following 
> commands
> will make the condition in that if statement false:
>
> :cexpr ""
> :autocmd BufEnter *.c colder
> :vimgrep buf_T *.c
>
> For other conditions in that if statement, you can replace 'colder' with 
> 'call setqflist([], 'f')'
> and 'call setqflist([], 'r').
>

One additional note. 'qi' points to the global variable 'ql_info'or
the window local location
list stack (wp->w_llist).  The contents of these structures can be
changed out-of-band
by an autocmd.

- 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/CAAW7x7mX63x%3D%2BUYpnHs2ks0eZsM6p6GHvErvUm-X4NaZv0%2B3BA%40mail.gmail.com.

Raspunde prin e-mail lui