0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

Fix crash when using ":grep".

This commit is contained in:
Bram Moolenaar
2010-06-07 23:07:44 +02:00
parent 6a3c997104
commit cdddaa46a2

View File

@@ -8792,6 +8792,7 @@ aucmd_prepbuf(aco, buf)
aco->use_aucmd_win = TRUE;
aucmd_win_used = TRUE;
aucmd_win->w_buffer = buf;
aucmd_win->w_s = &buf->b_s;
++buf->b_nwindows;
win_init_empty(aucmd_win); /* set cursor and topline to safe values */
vim_free(aucmd_win->w_localdir);