Mercurial > vim
diff src/popupwin.c @ 17823:7e6b7a4f13bc v8.1.1908
patch 8.1.1908: every popup window consumes a buffer number
Commit: https://github.com/vim/vim/commit/00b0d6d8dc2c04b3cb26ea3c3d58527939f01af6
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Aug 21 22:25:30 2019 +0200
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 21 Aug 2019 22:30:04 +0200 |
parents | fe92aaf166c1 |
children | 9513821d9d8f |
line wrap: on
line diff
--- a/src/popupwin.c +++ b/src/popupwin.c @@ -1550,8 +1550,7 @@ popup_create(typval_T *argvars, typval_T { // 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);