diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2026-10-12 13:40:29 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-10-12 05:40:29 +0000 |
| commit | 208bf43e50aa26becc8ca6c9fb261765aee89318 (patch) | |
| tree | 3ef9112a6c7fea05eef2e7bfceadad42b4c19710 /runtime/lua/vim/_ftplugin/lua.lua | |
| parent | 89370c06d73b471187e1c43743ce01bb8bd7e8d4 (diff) | |
| download | rneovim-208bf43e50aa26becc8ca6c9fb261765aee89318.tar.gz rneovim-208bf43e50aa26becc8ca6c9fb261765aee89318.tar.bz2 rneovim-208bf43e50aa26becc8ca6c9fb261765aee89318.zip | |
vim-patch:9.2.1176: Vim writes test file "4913" (#42310)
Problem: Vim writes test file "4913".
Solution: Write probe file as (hidden) swap file, so file
watchers can apply standard ignore patterns (Keith Smiley).
This logic creates and deletes an arbitrary numbered filename. I found
that some file system watchers that otherwise respect VCS ignore
patterns can pick this file up and potentially rerun because of that.
This changes the arbitrary filename to use the swp extension so it's
more likely to already be ignored by the VCS.
related: vim/vim#5145
related: neovim/neovim#3460
closes: vim/vim#21468
https://github.com/vim/vim/commit/7eb646597d6b6be42f5941cf194938afa3af5208
Co-authored-by: Keith Smiley <keithbsmiley@gmail.com>
Diffstat (limited to 'runtime/lua/vim/_ftplugin/lua.lua')
0 files changed, 0 insertions, 0 deletions