Hi,

On Wed, Jul 12, 2017 at 11:09 AM, Daniel Hahler
<[email protected]> wrote:
> Using :laddexpr or calling setloclist() should increase b:changedtick for
> the quickfix / location list, if the list was modified.
>
> This way it could be used to invalidate a cache etc.
>

Can you try the attached patch? If there are no issues, I will send out
a patch with tests and doc update.

- 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.
diff --git a/src/quickfix.c b/src/quickfix.c
index 3889a9565..76e068044 100644
--- a/src/quickfix.c
+++ b/src/quickfix.c
@@ -3088,6 +3088,7 @@ ex_copen(exarg_T *eap)
      * Fill the buffer with the quickfix list.
      */
     qf_fill_buffer(qi, curbuf, NULL);
+    CHANGEDTICK(curbuf) = 1;
 
     curwin->w_cursor.lnum = qi->qf_lists[qi->qf_curlist].qf_index;
     curwin->w_cursor.col = 0;
@@ -3289,6 +3290,7 @@ qf_update_buffer(qf_info_T *qi, qfline_T *old_last)
        qf_update_win_titlevar(qi);
 
        qf_fill_buffer(qi, buf, old_last);
+       ++CHANGEDTICK(buf);
 
        if (old_last == NULL)
        {

Raspunde prin e-mail lui