]> granicus.if.org Git - vim/commitdiff
patch 8.2.2123: after using a complete popup the buffer is listed v8.2.2123
authorBram Moolenaar <Bram@vim.org>
Wed, 9 Dec 2020 17:13:44 +0000 (18:13 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 9 Dec 2020 17:13:44 +0000 (18:13 +0100)
Problem:    After using a complete popup the buffer is listed. (Boris
            Staletic)
Solution:   Make the buffer unlisted.

src/popupmenu.c
src/testdir/test_popupwin.vim
src/version.c

index f4f210b5d7a89edd397c02cfb120d6c06949481c..c8d305cbcbd2b3a4cbda7b4b2eae110fea14193b 100644 (file)
@@ -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,
index 50d4715e7bd53eda3480a98adc9269d2123abd80..3f13b26a11d29ca63a038bc8edc15310e2ebc4f4 100644 (file)
@@ -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
 
index 8eec20e660a02899263891ee2022624adb6c55d3..3c39f0e1801152dab3a9cb7195f50bf90c512ea5 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2123,
 /**/
     2122,
 /**/