1
0
forked from aniani/vim

patch 7.4.1153

Problem:    Autocommands triggered by quickfix cannot always get the current
            title value.
Solution:   Call qf_fill_buffer() later. (Christian Brabandt)
This commit is contained in:
Bram Moolenaar
2016-01-22 22:44:10 +01:00
parent 09e786e7a7
commit 6920c72d4d
3 changed files with 18 additions and 3 deletions

View File

@@ -2605,17 +2605,16 @@ qf_update_buffer(qi)
/* set curwin/curbuf to buf and save a few things */
aucmd_prepbuf(&aco, buf);
qf_fill_buffer(qi);
if ((win = qf_find_win(qi)) != NULL)
{
curwin_save = curwin;
curwin = win;
qf_set_title_var(qi);
curwin = curwin_save;
}
qf_fill_buffer(qi);
/* restore curwin/curbuf and a few other things */
aucmd_restbuf(&aco);