From 4b69df1cd82584a74b65ec78dae59b6d7aef8c7f Mon Sep 17 00:00:00 2001 From: h-east Date: Wed, 1 Oct 2025 21:19:59 +0900 Subject: [PATCH 1/2] Update popup.{txt,jax} --- doc/popup.jax | 17 ++++++++++++----- en/popup.txt | 17 ++++++++++++----- 2 files changed, 24 insertions(+), 10 deletions(-) diff --git a/doc/popup.jax b/doc/popup.jax index 97055b082..b27804777 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| From 1d3dbadc764adcc9b39b524969f325c1b53f45c9 Mon Sep 17 00:00:00 2001 From: h_east Date: Sat, 4 Oct 2025 12:18:01 +0900 Subject: [PATCH 2/2] Update doc/popup.jax Co-authored-by: Tsuyoshi CHO --- doc/popup.jax | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/popup.jax b/doc/popup.jax index b27804777..74e9a500b 100644 --- a/doc/popup.jax +++ b/doc/popup.jax @@ -655,8 +655,8 @@ popup_show({id}) *popup_show()* ポップアップが現在非表示になっている場合は、表示される。 ポップアップを非表示にするには、|popup_hide()| を参照。 - {id} が情報ポップアップを参照する場合、ポップアップメニューで - 現在選択されている項目の隣に配置される。 + {id} が情報ポップアップを参照している場合、ポップアップメニュー + で現在選択されている項目の隣に配置される。 {id} のポップアップウィンドウが存在しない場合は -1 を返す。 成功した場合は 0 を返す。