]> git.ipfire.org Git - thirdparty/vim.git/commit
runtime(netrw): Do not create swapfiles in netrw buffers
authorChristian Brabandt <cb@256bit.org>
Mon, 19 Jan 2026 19:25:12 +0000 (19:25 +0000)
committerChristian Brabandt <cb@256bit.org>
Mon, 19 Jan 2026 19:26:09 +0000 (19:26 +0000)
commit4e2aafddbb6658a984bb6042026eb4ba5ee423d7
treee3a2d035833959d2ef84101140107647d0940b77
parentd829e10e0fa36de50ce230ee840dfc727e252642
runtime(netrw): Do not create swapfiles in netrw buffers

Problem:  When using netrw to navigate directories, vim immediately
          creates, then deletes a swap file in the entered directory,
          causing the lastModifiedTime of that directory to change.
Solution: Use the :noswapfile command modifier in s:NetrwEditFile()

fixes: #18854

Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/pack/dist/opt/netrw/autoload/netrw.vim