diff --git a/doc/insert.jax b/doc/insert.jax index 43d8b5348..4818b61c9 100644 --- a/doc/insert.jax +++ b/doc/insert.jax @@ -1,4 +1,4 @@ -*insert.txt* For Vim バージョン 9.1. Last change: 2025 Jul 05 +*insert.txt* For Vim バージョン 9.1. Last change: 2025 Jul 17 VIMリファレンスマニュアル by Bram Moolenaar @@ -1193,13 +1193,17 @@ Note 最初の呼び出し以降にカーソルが移動した可能性があり 例: > :set completepopup=height:10,width:60,highlight:InfoPopup -"align" 値が "item" の場合、ポップアップは選択されたアイテムの近くに配置され -る。選択を変更すると、ポップアップも移動する。"align" が "menu" の場合、ポップ -アップがメニューがテキストの下にある場合はメニューの上部に配置され、そうでない -場合はメニューの下部に配置される。 +`"align"` を `"item"` に設定すると、ポップアップは選択された項目の近くに配置さ +れ、選択内容の変更に応じて移動する。 +`"menu"` に設定すると、ポップアップはメニューの上端 (メニューがテキストの下に +表示される場合) または下端 (メニューがテキストの上に表示される場合) に揃えられ +る。 + +'mouse' が有効になっている場合、ポップアップの境界に閉じるボタンとサイズ変更ハ +ンドルが表示される。 -情報ポップアップが作成された後、それを |popup_findinfo()| で見つけることがで -き、プロパティは |popup_setoptions()| で変更できる。 +作成後、情報ポップアップは |popup_findinfo()| で見つけることができ、 +|popup_setoptions()| で変更できる。 *complete-popuphidden* ポップアップの情報が非同期で得られる場合は、'completeopt' で "popuphidden" を diff --git a/en/insert.txt b/en/insert.txt index df0cff978..80b604155 100644 --- a/en/insert.txt +++ b/en/insert.txt @@ -1,4 +1,4 @@ -*insert.txt* For Vim version 9.1. Last change: 2025 Jul 05 +*insert.txt* For Vim version 9.1. Last change: 2025 Jul 17 VIM REFERENCE MANUAL by Bram Moolenaar @@ -1258,13 +1258,16 @@ of values: Example: > :set completepopup=height:10,width:60,highlight:InfoPopup -When the "align" value is "item" then the popup is positioned close to the -selected item. Changing the selection will also move the popup. When "align" -is "menu" then the popup is aligned with the top of the menu if the menu is -below the text, and the bottom of the menu otherwise. +When `"align"` is set to `"item"`, the popup is positioned near the selected +item, and moves as the selection changes. +When set to `"menu"`, the popup aligns with the top of the menu (if the menu +appears below the text), or with the bottom (if the menu appears above). -After the info popup is created it can be found with |popup_findinfo()| and -properties can be changed with |popup_setoptions()|. +If the 'mouse' is enabled, a close button and resize handle will appear on the +popup border. + +After creation, the info popup can be located with |popup_findinfo()| and +modified using |popup_setoptions()|. *complete-popuphidden* If the information for the popup is obtained asynchronously, use "popuphidden"