Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
23153:a40d2987b230 | 23154:713912dd96cd |
---|---|
3213 \ } | 3213 \ } |
3214 endfunc | 3214 endfunc |
3215 call setline(1, 'text text text text text text text ') | 3215 call setline(1, 'text text text text text text text ') |
3216 func ChangeColor() | 3216 func ChangeColor() |
3217 let id = popup_findinfo() | 3217 let id = popup_findinfo() |
3218 if buflisted(winbufnr(id)) | |
3219 call setline(1, 'buffer is listed') | |
3220 endif | |
3218 eval id->popup_setoptions(#{highlight: 'InfoPopup'}) | 3221 eval id->popup_setoptions(#{highlight: 'InfoPopup'}) |
3219 endfunc | 3222 endfunc |
3220 | 3223 |
3221 func InfoHidden() | 3224 func InfoHidden() |
3222 set completepopup=height:4,border:off,align:menu | 3225 set completepopup=height:4,border:off,align:menu |