diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-08-21 22:25:30 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-08-21 22:25:30 +0200 |
commit | 00b0d6d8dc2c04b3cb26ea3c3d58527939f01af6 (patch) | |
tree | 0f3a9bc3181d31e26e8539ab8f59f2c73c9ff39b /src/testdir | |
parent | fe6e7618b4d05cb91679dbf7ed5983c95ff5b6a2 (diff) |
patch 8.1.1908: every popup window consumes a buffer numberv8.1.1908
Problem: Every popup window consumes a buffer number.
Solution: Recycle buffers only used for popup windows. Do not list popup
window buffers.
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_popupwin.vim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/testdir/test_popupwin.vim b/src/testdir/test_popupwin.vim index 358da6d129..f742035aa9 100644 --- a/src/testdir/test_popupwin.vim +++ b/src/testdir/test_popupwin.vim @@ -2331,4 +2331,13 @@ func Test_popupmenu_info_align_menu() call delete('XtestInfoPopupNb') endfunc +func Test_popupwin_recycle_bnr() + let winid = popup_notification('nothing wrong', {}) + let bufnr = winbufnr(winid) + call popup_clear() + let winid = popup_notification('nothing wrong', {}) + call assert_equal(bufnr, winbufnr(winid)) + call popup_clear() +endfunc + " vim: shiftwidth=2 sts=2 |