Mercurial > vim
diff src/testdir/test_popupwin.vim @ 23154:713912dd96cd v8.2.2123
patch 8.2.2123: after using a complete popup the buffer is listed
Commit: https://github.com/vim/vim/commit/d356fc65d273959efa9b05bfa0f07ce1c9ff85a4
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Dec 9 18:13:44 2020 +0100
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 09 Dec 2020 18:15:03 +0100 |
parents | 4b398a229b0b |
children | 6620b51e2916 |
line wrap: on
line diff
--- 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