Permalink
Browse files

check for existence of swapfile

  • Loading branch information...
1 parent d2b870a commit 65217607ae5fc78ea1a4e8a45a4564bbe09c24b5 @chrisbra committed Mar 23, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 autoload/recover.vim
View
@@ -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"

0 comments on commit 6521760

Please sign in to comment.