patch 8.2.2123: after using a complete popup the buffer is listed
Problem: After using a complete popup the buffer is listed. (Boris
Staletic)
Solution: Make the buffer unlisted.
diff --git a/src/popupmenu.c b/src/popupmenu.c
index f4f210b..c8d305c 100644
--- a/src/popupmenu.c
+++ b/src/popupmenu.c
@@ -858,6 +858,7 @@
// Edit a new, empty buffer. Set options for a "wipeout"
// buffer.
set_option_value((char_u *)"swf", 0L, NULL, OPT_LOCAL);
+ set_option_value((char_u *)"bl", 0L, NULL, OPT_LOCAL);
set_option_value((char_u *)"bt", 0L,
(char_u *)"nofile", OPT_LOCAL);
set_option_value((char_u *)"bh", 0L,
diff --git a/src/testdir/test_popupwin.vim b/src/testdir/test_popupwin.vim
index 50d4715..3f13b26 100644
--- a/src/testdir/test_popupwin.vim
+++ b/src/testdir/test_popupwin.vim
@@ -3215,6 +3215,9 @@
call setline(1, 'text text text text text text text ')
func ChangeColor()
let id = popup_findinfo()
+ if buflisted(winbufnr(id))
+ call setline(1, 'buffer is listed')
+ endif
eval id->popup_setoptions(#{highlight: 'InfoPopup'})
endfunc
diff --git a/src/version.c b/src/version.c
index 8eec20e..3c39f0e 100644
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 2123,
+/**/
2122,
/**/
2121,