comparison src/quickfix.c @ 9485:c16e207dc465 v7.4.2023

commit https://github.com/vim/vim/commit/ea3f2e7be447a8f0c4436869620f908de5e8ef1e Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 10 20:27:32 2016 +0200 patch 7.4.2023 Problem: buflist_findname_stat() may find a dummy buffer. Solution: Set the BF_DUMMY flag after loading a dummy buffer. Start finding buffers from the end of the list.
author Christian Brabandt <cb@256bit.org>
date Sun, 10 Jul 2016 20:30:06 +0200
parents 4d8f7f8da90c
children 69ed2c9d34a6
comparison
equal deleted inserted replaced
9484:8b737122c03c 9485:c16e207dc465
4290 4290
4291 /* restore curwin/curbuf and a few other things */ 4291 /* restore curwin/curbuf and a few other things */
4292 aucmd_restbuf(&aco); 4292 aucmd_restbuf(&aco);
4293 if (newbuf_to_wipe != NULL && buf_valid(newbuf_to_wipe)) 4293 if (newbuf_to_wipe != NULL && buf_valid(newbuf_to_wipe))
4294 wipe_buffer(newbuf_to_wipe, FALSE); 4294 wipe_buffer(newbuf_to_wipe, FALSE);
4295
4296 /* Add back the "dummy" flag, otherwise buflist_findname_stat() won't
4297 * skip it. */
4298 newbuf->b_flags |= BF_DUMMY;
4295 } 4299 }
4296 4300
4297 /* 4301 /*
4298 * When autocommands/'autochdir' option changed directory: go back. 4302 * When autocommands/'autochdir' option changed directory: go back.
4299 * Let the caller know what the resulting dir was first, in case it is 4303 * Let the caller know what the resulting dir was first, in case it is