1
0
forked from aniani/vim

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.
This commit is contained in:
Bram Moolenaar
2016-07-10 20:27:32 +02:00
parent 25065ec375
commit ea3f2e7be4
3 changed files with 11 additions and 3 deletions

View File

@@ -4292,6 +4292,10 @@ load_dummy_buffer(
aucmd_restbuf(&aco);
if (newbuf_to_wipe != NULL && buf_valid(newbuf_to_wipe))
wipe_buffer(newbuf_to_wipe, FALSE);
/* Add back the "dummy" flag, otherwise buflist_findname_stat() won't
* skip it. */
newbuf->b_flags |= BF_DUMMY;
}
/*