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.
diff --git a/runtime/doc/popup.txt b/runtime/doc/popup.txt
index 3b17f77..bbab6d0 100644
--- a/runtime/doc/popup.txt
+++ b/runtime/doc/popup.txt
@@ -85,7 +85,6 @@
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 @@
"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 @@
{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()*