Skip to content

Commit

Permalink
Merge pull request #44 from glacambre/master
Browse files Browse the repository at this point in the history
Fix bug where the '(D)elete' option wouldn't show in neovim
  • Loading branch information
chrisbra committed Dec 5, 2016
2 parents 3b18d6d + 84b6865 commit e28314b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoload/recover.vim
Expand Up @@ -100,7 +100,7 @@ fu! recover#ConfirmSwapDiff() "{{{1
let msg = ""
let bufname = s:isWin() ? fnamemodify(expand('%'), ':p:8') : shellescape(expand('%'))
let tfile = tempname()
if executable('vim') && !s:isWin() && !s:isMacTerm() && !get(g:, 'RecoverPlugin_No_Check_Swapfile', 0)
if executable(v:progpath) && !s:isWin() && !s:isMacTerm() && !get(g:, 'RecoverPlugin_No_Check_Swapfile', 0)
" Doesn't work on windows (system() won't be able to fetch the output)
" and Mac Terminal (issue #24)
" Capture E325 Warning message
Expand Down Expand Up @@ -146,7 +146,7 @@ fu! recover#ConfirmSwapDiff() "{{{1
endif
endif
" Show modification message and present user question about what to do:
if executable('vim') && executable('diff') "&& s:isWin()
if executable(v:progpath) && executable('diff') "&& s:isWin()
" Check, whether the files differ issue #7
" doesn't work on Windows? (cmd is ok, should be executable)
if s:isWin()
Expand Down

0 comments on commit e28314b

Please sign in to comment.