To: vim_dev@googlegroups.com Subject: Patch 8.2.2123 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.2123 Problem: After using a complete popup the buffer is listed. (Boris Staletic) Solution: Make the buffer unlisted. Files: src/popupmenu.c, src/testdir/test_popupwin.vim *** ../vim-8.2.2122/src/popupmenu.c 2020-11-16 19:11:44.807527909 +0100 --- src/popupmenu.c 2020-12-09 18:13:11.993773813 +0100 *************** *** 858,863 **** --- 858,864 ---- // 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, *** ../vim-8.2.2122/src/testdir/test_popupwin.vim 2020-12-02 17:36:49.177409727 +0100 --- src/testdir/test_popupwin.vim 2020-12-09 18:12:34.121897266 +0100 *************** *** 3215,3220 **** --- 3215,3223 ---- 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 *** ../vim-8.2.2122/src/version.c 2020-12-09 17:16:46.708470428 +0100 --- src/version.c 2020-12-09 17:49:47.066262411 +0100 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 2123, /**/ -- "Software is like sex... it's better when it's free." -- Linus Torvalds, initiator of the free Linux OS Makes me wonder what FSF stands for...? /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///