Skip to content

Commit 765e51d

Browse files
authored
Merge pull request #1653 from vim-jp/hh-update-autocmd
Update autocmd.{txt,jax}
2 parents 1758600 + 207ab5f commit 765e51d

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

doc/autocmd.jax

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*autocmd.txt* For Vim バージョン 9.1. Last change: 2024 Jul 17
1+
*autocmd.txt* For Vim バージョン 9.1. Last change: 2024 Aug 12
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -1402,10 +1402,12 @@ WinLeave ウィンドウを離れる前。次に入るウィンドウで他の
14021402
":qa" や "q" でVimを終了するときには発生しない。
14031403

14041404
*WinNewPre*
1405-
WinNewPre 新しいウィンドウを作成する前。分割または、新し
1406-
いタブページを作成してウィンドウレイアウトを変
1407-
更するコマンドの前にトリガーされる。Vim が起動
1408-
したばかりの最初のウィンドウでは行われない。
1405+
WinNewPre 新しいウィンドウを作成する前。分割を作成して
1406+
ウィンドウレイアウトを変更するコマンドの前にト
1407+
リガーされる。
1408+
ウィンドウ構造が未初期化だと大抵は安全ではない
1409+
ため、タブページの作成や最初のウィンドウの場合
1410+
は実行されない。
14091411
WinNewPre イベントのコマンドの実行中にウィンド
14101412
ウレイアウトを変更することはできない。
14111413
カレントウィンドウのレイアウトを保存し、ウィン

en/autocmd.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*autocmd.txt* For Vim version 9.1. Last change: 2024 Jul 17
1+
*autocmd.txt* For Vim version 9.1. Last change: 2024 Aug 12
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1427,8 +1427,10 @@ WinLeave Before leaving a window. If the window to be
14271427
*WinNewPre*
14281428
WinNewPre Before creating a new window. Triggered
14291429
before commands that modify window layout by
1430-
creating a split or new tab page. Not done for
1431-
the first window, when Vim has just started.
1430+
creating a split.
1431+
Not done when creating tab pages and for the
1432+
first window, as the window structure is not
1433+
initialized yet and so is generally not safe.
14321434
It is not allowed to modify window layout
14331435
while executing commands for the WinNewPre
14341436
event.

0 commit comments

Comments
 (0)