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

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

@@ -4970,7 +4970,7 @@ win_unlisted(win_T *wp)
win_free_popup(win_T *win)
{
if (bt_popup(win->w_buffer))
win_close_buffer(win, DOBUF_WIPE, FALSE);
win_close_buffer(win, DOBUF_WIPE_REUSE, FALSE);
else
close_buffer(win, win->w_buffer, 0, FALSE);
# if defined(FEAT_TIMERS)