1
0
forked from aniani/vim

patch 8.1.1908: every popup window consumes a buffer number

Problem:    Every popup window consumes a buffer number.
Solution:   Recycle buffers only used for popup windows.  Do not list popup
            window buffers.
This commit is contained in:
Bram Moolenaar
2019-08-21 22:25:30 +02:00
parent fe6e7618b4
commit 00b0d6d8dc
8 changed files with 75 additions and 28 deletions

View File

@@ -1550,8 +1550,7 @@ popup_create(typval_T *argvars, typval_T *rettv, create_type_T type)
{
// create a new buffer associated with the popup
new_buffer = TRUE;
buf = buflist_new(NULL, NULL, (linenr_T)0,
BLN_NEW|BLN_LISTED|BLN_DUMMY);
buf = buflist_new(NULL, NULL, (linenr_T)0, BLN_NEW|BLN_DUMMY|BLN_REUSE);
if (buf == NULL)
return NULL;
ml_open(buf);