Re: Imprecise documentation of popup_close()

Christian Brabandt <[email protected]>
Newsgroups gmane.editors.vim
Message-ID <[email protected]>
On Wed, 08 Jan 2025, Lifepillar wrote:

> According to `:help popup_close()`, when a popup is closed the "window
> and the associated buffer will be deleted". That is not the case,
> however, if the popup was created with an existing buffer, e.g.:
> 
>     vim9script
>     var bufnr = bufadd('Popup buffer')
>     var winid = popup_create(bufnr, {})
>     popup_close(winid)
>     echo bufexists(bufnr)
> 
> So, I think that the help should be amended with an additional sentence:
> "If the popup was created with an existing buffer then only the popup
> window will be closed." or something along those lines.

Thanks, fixed as of Commit 1f045f324d0a8e9e897e5e

Thanks,
Christian
-- 
Just because you're paranoid doesn't mean they AREN'T after you.

-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/vim_use/Z355U3fIRQraaBcF%40256bit.org.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.