Skip to content

Commit 9ffd46c

Browse files
authored
Merge pull request #1086 from tsuyoshicho/update/20220424/popup
Update popup.{txt,jax}
2 parents 3085709 + 154d3a9 commit 9ffd46c

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

doc/popup.jax

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*popup.txt* For Vim バージョン 8.2. Last change: 2022 Jan 08
1+
*popup.txt* For Vim バージョン 8.2. Last change: 2022 Apr 04
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -273,6 +273,12 @@ popup_create({what}, {options}) *popup_create()*
273273
されたバッファが作成される。ポップアップを閉じると、そのバッ
274274
ファは消去される。
275275

276+
{what} がバッファ番号で、バッファのロードが既存のスワップファ
277+
イルと衝突した場合、|SwapExists| 自動コマンドが |v:swapchoice|
278+
を 'o' に設定したかのように、読み取り専用でサイレントに開かれ
279+
る。これは、バッファが表示にのみ使用されると想定しているためで
280+
ある。
281+
276282
{options} は多くのエントリがある辞書である。
277283
詳細は |popup_create-arguments| を参照。
278284

en/popup.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*popup.txt* For Vim version 8.2. Last change: 2022 Jan 08
1+
*popup.txt* For Vim version 8.2. Last change: 2022 Apr 04
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -271,6 +271,11 @@ popup_create({what}, {options}) *popup_create()*
271271
'buftype' set to "popup". That buffer will be wiped out once
272272
the popup closes.
273273

274+
if {what} is a buffer number and loading the buffer runs into
275+
an existing swap file, it is silently opened read-only, as if
276+
a |SwapExists| autocommand had set |v:swapchoice| to 'o'.
277+
This is because we assume the buffer is only used for viewing.
278+
274279
{options} is a dictionary with many possible entries.
275280
See |popup_create-arguments| for details.
276281

0 commit comments

Comments
 (0)