Skip to content

Commit

Permalink
Turn off swap files in all URL buffers
Browse files Browse the repository at this point in the history
References #202.
  • Loading branch information
tpope committed Mar 19, 2014
1 parent 152c919 commit b27937d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugin/fugitive.vim
Original file line number Diff line number Diff line change
Expand Up @@ -2164,6 +2164,7 @@ function! s:BufReadIndexFile()
if &bufhidden ==# ''
setlocal bufhidden=delete
endif
setlocal noswapfile
endtry
return ''
catch /^fugitive: rev-parse/
Expand Down Expand Up @@ -2266,7 +2267,7 @@ function! s:BufReadObject()
endif
finally
call setpos('.',pos)
setlocal ro noma nomod
setlocal ro noma nomod noswapfile
if &bufhidden ==# ''
setlocal bufhidden=delete
endif
Expand Down

0 comments on commit b27937d

Please sign in to comment.