Don't attempt swapfiles for man pages

This is because we now use :tag to open a man page, which attempts
to open a swap file for a path under man://...
This commit is contained in:
Rob Pilling
2019-11-13 21:57:17 +00:00
parent aeee41192b
commit 18c5f6ab9f

View File

@@ -150,6 +150,7 @@ endfunction
function! s:put_page(page) abort
setlocal modifiable
setlocal noreadonly
setlocal noswapfile
silent keepjumps %delete _
silent put =a:page
while getline(1) =~# '^\s*$'