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/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