Skip to content

Commit d356fc6

Browse files
committed
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.
1 parent 9ec7026 commit d356fc6

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

src/popupmenu.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -858,6 +858,7 @@ pum_set_selected(int n, int repeat UNUSED)
858858
// Edit a new, empty buffer. Set options for a "wipeout"
859859
// buffer.
860860
set_option_value((char_u *)"swf", 0L, NULL, OPT_LOCAL);
861+
set_option_value((char_u *)"bl", 0L, NULL, OPT_LOCAL);
861862
set_option_value((char_u *)"bt", 0L,
862863
(char_u *)"nofile", OPT_LOCAL);
863864
set_option_value((char_u *)"bh", 0L,

src/testdir/test_popupwin.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3215,6 +3215,9 @@ func Get_popupmenu_lines()
32153215
call setline(1, 'text text text text text text text ')
32163216
func ChangeColor()
32173217
let id = popup_findinfo()
3218+
if buflisted(winbufnr(id))
3219+
call setline(1, 'buffer is listed')
3220+
endif
32183221
eval id->popup_setoptions(#{highlight: 'InfoPopup'})
32193222
endfunc
32203223

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,8 @@ static char *(features[]) =
750750

751751
static int included_patches[] =
752752
{ /* Add new patch number below this line */
753+
/**/
754+
2123,
753755
/**/
754756
2122,
755757
/**/

0 commit comments

Comments
 (0)