Skip to content

Commit

Permalink
check for existence of swapfile
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbra committed Mar 23, 2012
1 parent d2b870a commit 6521760
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/recover.vim
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ fu! s:CheckSwapFileExists() "{{{1
return
endif
redir => a | sil swapname |redir end
if filereadable(split(a)[0])
if !filereadable(a[1:])
" previous SwapExists autocommand deleted our swapfile,
" recreate it and avoid E325 Message
sil! "setl noswapfile swapfile"
Expand Down

0 comments on commit 6521760

Please sign in to comment.