diff --git a/doc/popup.jax b/doc/popup.jax index 97055b082..74e9a500b 100644 --- a/doc/popup.jax +++ b/doc/popup.jax @@ -1,4 +1,4 @@ -*popup.txt* For Vim バージョン 9.1. Last change: 2025 Aug 27 +*popup.txt* For Vim バージョン 9.1. Last change: 2025 Sep 26 VIMリファレンスマニュアル by Bram Moolenaar @@ -649,10 +649,17 @@ popup_settext({id}, {text}) *popup_settext()* popup_show({id}) *popup_show()* - {id} が非表示のポップアップの場合は、それを表示する。 - {id} については `popup_hide()` を参照。 - {id} が情報ポップアップの場合、現在のポップアップメニュー項目 - の隣に配置される。 + {id} で識別される非表示のポップアップウィンドウを表示する。 + |popup_create()| によって返される {id} を使用する。 + + ポップアップが現在非表示になっている場合は、表示される。 + ポップアップを非表示にするには、|popup_hide()| を参照。 + + {id} が情報ポップアップを参照している場合、ポップアップメニュー + で現在選択されている項目の隣に配置される。 + + {id} のポップアップウィンドウが存在しない場合は -1 を返す。 + 成功した場合は 0 を返す。 戻り値の型: |Number| diff --git a/en/popup.txt b/en/popup.txt index a3d25a4cf..9d518c0ec 100644 --- a/en/popup.txt +++ b/en/popup.txt @@ -1,4 +1,4 @@ -*popup.txt* For Vim version 9.1. Last change: 2025 Aug 27 +*popup.txt* For Vim version 9.1. Last change: 2025 Sep 26 VIM REFERENCE MANUAL by Bram Moolenaar @@ -639,10 +639,17 @@ popup_settext({id}, {text}) *popup_settext()* popup_show({id}) *popup_show()* - If {id} is a hidden popup, show it now. - For {id} see `popup_hide()`. - If {id} is the info popup it will be positioned next to the - current popup menu item. + Show a hidden popup window identified by {id}. + Use {id} as returned by |popup_create()|. + + If the popup is currently hidden, it will be made visible. + See |popup_hide()| to hide a popup. + + If {id} refers to an info popup, it will be positioned next to + the currently selected item in the popup menu. + + Returns -1 if a popup window with {id} does not exist. + Returns 0 on success. Return type: |Number|