Hi,

On Wed, Jul 12, 2017 at 11:29 PM, LCD 047 <[email protected]> wrote:
>> Note that this changes only the b:changedtick variable of the buffer
>> displayed in the quickfix/loclist window and not for any other buffer
>> displayed in other windows.
>
> Ah, I missed that, sorry. But then b:changedtick for this buffer seems to be
> the wrong thing to monitor for detecting loclist changes, because:
>
>> If you close the quickfix window and reopen it, then the b:changedtick
>> variable will be reset.
>
> So you can potentially get both false negatives and false positives.
>

The b:changedtick variable for the quickfix buffer indicates how many
times the buffer has been changed/updated after it was displayed in
the quickfix window. For example, after executing the following series
of commands:

     cexpr ""
     cexpr ""
     cexpr ""
     copen
     colder
     colder
     cnewer
     cnewer

The b:changedtick variable will be set to 6. In the above case the
quickfix list itself is not changing, only the buffer showing the quickifx
list is getting updated.

- 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].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui