Mercurial > vim
diff runtime/doc/popup.txt @ 16809:5ff14f96f1c9 v8.1.1406
patch 8.1.1406: popup_hide() and popup_show() not implemented yet
commit https://github.com/vim/vim/commit/2cd0dce898995a2b05f7285a70efec3f67f579f5
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun May 26 22:17:52 2019 +0200
patch 8.1.1406: popup_hide() and popup_show() not implemented yet
Problem: popup_hide() and popup_show() not implemented yet.
Solution: Implement the functions.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 26 May 2019 22:30:05 +0200 |
parents | c002c4899529 |
children | 0457d49eb2d9 |
line wrap: on
line diff
--- a/runtime/doc/popup.txt +++ b/runtime/doc/popup.txt @@ -85,7 +85,6 @@ Probably 2. is the best choice. IMPLEMENTATION: - Code is in popupwin.c - Implement list of lines with text properties -- Implement popup_hide() and popup_show() - Implement filter. - Handle screen resize in screenalloc(). - Make redrawing more efficient and avoid flicker. @@ -179,15 +178,16 @@ popup_menu({text}, {options}) *popup "callback" to a function that handles the selected item. -popup_show({id}) *popup_show()* - {not implemented yet} - If {id} is a hidden popup, show it now. - popup_hide({id}) *popup_hide()* - {not implemented yet} If {id} is a displayed popup, hide it now. If the popup has a filter it will not be invoked for so long as the popup is hidden. + If window {id} does not exist nothing happens. If window {id} + exists but is not a popup window an error is given. *E993* + +popup_show({id}) *popup_show()* + If {id} is a hidden popup, show it now. + For {id} see `popup_hide()`. popup_move({id}, {options}) *popup_move()* {not implemented yet} @@ -195,6 +195,7 @@ popup_move({id}, {options}) *popup_m {options} may contain the items from |popup_create()| that specify the popup position: "line", "col", "pos", "maxheight", "minheight", "maxwidth" and "minwidth". + For {id} see `popup_hide()`. popup_filter_menu({id}, {key}) *popup_filter_menu()*