Turn off swap files in all URL buffers

References #202.
This commit is contained in:
Tim Pope
2014-03-19 00:53:05 -04:00
parent 152c9195ae
commit b27937d5e4

View File

@@ -2164,6 +2164,7 @@ function! s:BufReadIndexFile()
if &bufhidden ==# '' if &bufhidden ==# ''
setlocal bufhidden=delete setlocal bufhidden=delete
endif endif
setlocal noswapfile
endtry endtry
return '' return ''
catch /^fugitive: rev-parse/ catch /^fugitive: rev-parse/
@@ -2266,7 +2267,7 @@ function! s:BufReadObject()
endif endif
finally finally
call setpos('.',pos) call setpos('.',pos)
setlocal ro noma nomod setlocal ro noma nomod noswapfile
if &bufhidden ==# '' if &bufhidden ==# ''
setlocal bufhidden=delete setlocal bufhidden=delete
endif endif