summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-12-09 18:13:44 +0100
committerBram Moolenaar <Bram@vim.org>2020-12-09 18:13:44 +0100
commitd356fc65d273959efa9b05bfa0f07ce1c9ff85a4 (patch)
tree1d82b3b16980d16f1f6bc283d6f23ed22c89fdbf
parent9ec7026f24e9ac51654300e32afd2b7540cab5f8 (diff)
patch 8.2.2123: after using a complete popup the buffer is listedv8.2.2123
Problem: After using a complete popup the buffer is listed. (Boris Staletic) Solution: Make the buffer unlisted.
-rw-r--r--src/popupmenu.c1
-rw-r--r--src/testdir/test_popupwin.vim3
-rw-r--r--src/version.c2
3 files changed, 6 insertions, 0 deletions
diff --git a/src/popupmenu.c b/src/popupmenu.c
index f4f210b5d7..c8d305cbcb 100644
--- a/src/popupmenu.c
+++ b/src/popupmenu.c
@@ -858,6 +858,7 @@ pum_set_selected(int n, int repeat UNUSED)
// 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 50d4715e7b..3f13b26a11 100644
--- a/src/testdir/test_popupwin.vim
+++ b/src/testdir/test_popupwin.vim
@@ -3215,6 +3215,9 @@ func Get_popupmenu_lines()
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 8eec20e660..3c39f0e180 100644
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 2123,
+/**/
2122,
/**/
2121,