mirror of
https://github.com/vim/vim.git
synced 2025-09-30 04:44:14 -04:00
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.
This commit is contained in:
@@ -858,6 +858,7 @@ pum_set_selected(int n, int repeat UNUSED)
|
|||||||
// Edit a new, empty buffer. Set options for a "wipeout"
|
// Edit a new, empty buffer. Set options for a "wipeout"
|
||||||
// buffer.
|
// buffer.
|
||||||
set_option_value((char_u *)"swf", 0L, NULL, OPT_LOCAL);
|
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,
|
set_option_value((char_u *)"bt", 0L,
|
||||||
(char_u *)"nofile", OPT_LOCAL);
|
(char_u *)"nofile", OPT_LOCAL);
|
||||||
set_option_value((char_u *)"bh", 0L,
|
set_option_value((char_u *)"bh", 0L,
|
||||||
|
@@ -3215,6 +3215,9 @@ func Get_popupmenu_lines()
|
|||||||
call setline(1, 'text text text text text text text ')
|
call setline(1, 'text text text text text text text ')
|
||||||
func ChangeColor()
|
func ChangeColor()
|
||||||
let id = popup_findinfo()
|
let id = popup_findinfo()
|
||||||
|
if buflisted(winbufnr(id))
|
||||||
|
call setline(1, 'buffer is listed')
|
||||||
|
endif
|
||||||
eval id->popup_setoptions(#{highlight: 'InfoPopup'})
|
eval id->popup_setoptions(#{highlight: 'InfoPopup'})
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
@@ -750,6 +750,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2123,
|
||||||
/**/
|
/**/
|
||||||
2122,
|
2122,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user