Skip to content

Commit 2561504

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents 054e169 + 6920c72 commit 2561504

3 files changed

Lines changed: 18 additions & 3 deletions

File tree

src/quickfix.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2605,17 +2605,16 @@ qf_update_buffer(qi)
26052605
/* set curwin/curbuf to buf and save a few things */
26062606
aucmd_prepbuf(&aco, buf);
26072607

2608-
qf_fill_buffer(qi);
2609-
26102608
if ((win = qf_find_win(qi)) != NULL)
26112609
{
26122610
curwin_save = curwin;
26132611
curwin = win;
26142612
qf_set_title_var(qi);
26152613
curwin = curwin_save;
2616-
26172614
}
26182615

2616+
qf_fill_buffer(qi);
2617+
26192618
/* restore curwin/curbuf and a few other things */
26202619
aucmd_restbuf(&aco);
26212620

src/testdir/test_quickfix.vim

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,3 +302,17 @@ function Test_helpgrep()
302302
cclose
303303
endfunc
304304

305+
func Test_errortitle()
306+
augroup QfBufWinEnter
307+
au!
308+
au BufWinEnter * :let g:a=get(w:, 'quickfix_title', 'NONE')
309+
augroup END
310+
copen
311+
let a=[{'lnum': 308, 'bufnr': bufnr(''), 'col': 58, 'valid': 1, 'vcol': 0, 'nr': 0, 'type': '', 'pattern': '', 'text': ' au BufWinEnter * :let g:a=get(w:, ''quickfix_title'', ''NONE'')'}]
312+
call setqflist(a)
313+
call assert_equal(':setqflist()', g:a)
314+
augroup QfBufWinEnter
315+
au!
316+
augroup END
317+
augroup! QfBufWinEnter
318+
endfunc

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,8 @@ static char *(features[]) =
756756

757757
static int included_patches[] =
758758
{ /* Add new patch number below this line */
759+
/**/
760+
1153,
759761
/**/
760762
1152,
761763
/**/

0 commit comments

Comments
 (0)